mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Fixed fcpp warning. Disabled warnings in glsl-optimizer.
This commit is contained in:
parent
a45b083bb2
commit
484efd9b77
2 changed files with 12 additions and 0 deletions
1
3rdparty/fcpp/cpp6.c
vendored
1
3rdparty/fcpp/cpp6.c
vendored
|
@ -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);
|
||||
|
|
11
3rdparty/glsl-optimizer/include/c99_compat.h
vendored
11
3rdparty/glsl-optimizer/include/c99_compat.h
vendored
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue