Fixed fcpp warning. Disabled warnings in glsl-optimizer.

This commit is contained in:
Branimir Karadžić 2014-08-19 20:21:17 -07:00
parent a45b083bb2
commit 484efd9b77
2 changed files with 12 additions and 0 deletions

View file

@ -481,6 +481,7 @@ char *savestring(struct Global *global, char *text)
/*
* Store a string into free memory.
*/
(void)global; // BK - not used but causes warning.
char *result;
result = malloc(strlen(text) + 1);

View file

@ -64,6 +64,17 @@
# include <crtdefs.h>
# undef _CRTRESTRICT
# define _CRTRESTRICT
#else
// BK - STFU!
# pragma GCC diagnostic ignored "-Wformat="
# pragma GCC diagnostic ignored "-Wformat-extra-args"
# pragma GCC diagnostic ignored "-Wignored-qualifiers"
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
# pragma GCC diagnostic ignored "-Wreorder"
# pragma GCC diagnostic ignored "-Wsign-compare"
# pragma GCC diagnostic ignored "-Wunused-parameter"
# pragma GCC diagnostic ignored "-Wunused-variable"
#endif