Silence warnings

This commit is contained in:
Twinaphex 2016-09-05 07:28:55 +02:00
parent 1edaa20029
commit ef43a573a3
2 changed files with 4 additions and 0 deletions

View File

@ -209,6 +209,8 @@ static INLINE bool gl_check_error(char *error_string)
error_string = strdup("Non specified GL error.");
break;
}
(void)error_string;
return false;
}

View File

@ -693,7 +693,9 @@ static void *gl_glsl_init(void *data, const char *path)
unsigned i;
struct shader_program_info shader_prog_info;
bool shader_support = false;
#ifdef GLSL_DEBUG
char *error_string = NULL;
#endif
config_file_t *conf = NULL;
const char *stock_vertex = NULL;
const char *stock_fragment = NULL;