Silence compiler warnings

This commit is contained in:
James Darpinian 2024-06-07 08:28:07 -07:00 committed by Zack Middleton
parent 6fe061c36e
commit 9348dbf643

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