From 9348dbf64363d815cf09573cb928302d725836a8 Mon Sep 17 00:00:00 2001 From: James Darpinian Date: Fri, 7 Jun 2024 08:28:07 -0700 Subject: [PATCH] Silence compiler warnings --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) 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