From d6ffd69ed0fc3bcc04dcc7d6bfda46ec8490725d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 28 Apr 2017 15:32:15 +0200 Subject: [PATCH] Silence warnings --- list_special.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/list_special.c b/list_special.c index 3eab331c7a..a8123a6a6e 100644 --- a/list_special.c +++ b/list_special.c @@ -108,13 +108,17 @@ struct string_list *dir_list_new_special(const char *input_dir, break; case DIR_LIST_SHADERS: { +#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_VULKAN) union string_list_elem_attr attr; +#endif struct string_list *str_list = string_list_new(); if (!str_list) return NULL; +#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_VULKAN) attr.i = 0; +#endif dir = input_dir; #ifdef HAVE_CG