|
@@ -307,6 +307,7 @@ endif
|
|
# -Wno-missing-braces ignore invalid warning (GCC bug 53119)
|
|
# -Wno-missing-braces ignore invalid warning (GCC bug 53119)
|
|
# -Wno-unused-value ignore unused return values of some functions (i.e. fread())
|
|
# -Wno-unused-value ignore unused return values of some functions (i.e. fread())
|
|
# -D_DEFAULT_SOURCE use with -std=c99 on Linux and PLATFORM_WEB, required for timespec
|
|
# -D_DEFAULT_SOURCE use with -std=c99 on Linux and PLATFORM_WEB, required for timespec
|
|
|
|
+# -D_GNU_SOURCE access to lots of nonstandard GNU/Linux extension functions
|
|
# -Werror=pointer-arith catch unportable code that does direct arithmetic on void pointers
|
|
# -Werror=pointer-arith catch unportable code that does direct arithmetic on void pointers
|
|
# -fno-strict-aliasing jar_xm.h does shady stuff (breaks strict aliasing)
|
|
# -fno-strict-aliasing jar_xm.h does shady stuff (breaks strict aliasing)
|
|
CFLAGS = -Wall -D_GNU_SOURCE -D$(PLATFORM) -D$(GRAPHICS) -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing $(CUSTOM_CFLAGS)
|
|
CFLAGS = -Wall -D_GNU_SOURCE -D$(PLATFORM) -D$(GRAPHICS) -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing $(CUSTOM_CFLAGS)
|