mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed fcpp warning. Disabled warnings in glsl-optimizer.
This commit is contained in:
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user