Silence compiler warnings

This commit is contained in:
James Darpinian authored and Zack Middleton committed 2024-06-09 22:10:52 -04:00
1 parent 6fe061c36e
commit 9348dbf643
1 file changed
+4
+4
View File
@@ -1114,6 +1114,10 @@ ifeq ($(PLATFORM),emscripten)
OPTIMIZEVM = -O3
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
# These allow a warning-free build.
# Some of these warnings may actually be legit problems and should be fixed at some point.
BASE_CFLAGS+=-Wno-deprecated-non-prototype -Wno-dangling-else -Wno-implicit-const-int-float-conversion -Wno-misleading-indentation -Wno-format-overflow -Wno-logical-not-parentheses -Wno-absolute-value
SHLIBEXT=wasm
SHLIBCFLAGS=-fPIC
SHLIBLDFLAGS=-s SIDE_MODULE