diff --git a/Makefile b/Makefile index a4501ef8..9d73264f 100644 --- a/Makefile +++ b/Makefile @@ -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