]> git.proxmox.com Git - wasi-libc.git/blobdiff - Makefile
Add -Wno-ignored-pragmas.
[wasi-libc.git] / Makefile
index f9a6f69f3677d074b6526fcc317f12842102313b..bfa49bdbfcfe3fe7709b5e67f62c47801d2e1d0e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -188,8 +188,16 @@ CFLAGS = $(WASM_CFLAGS) --target=$(TARGET_TRIPLE)
 # WebAssembly floating-point match doesn't trap.
 # TODO: Add -fno-signaling-nans when the compiler supports it.
 CFLAGS += -fno-trapping-math
-# We should have proper declarations for everything.
-CFLAGS += -Wall -Wextra -Werror
+# Add all warnings, but disable a few which occur in third-party code.
+CFLAGS += -Wall -Wextra -Werror \
+  -Wno-null-pointer-arithmetic \
+  -Wno-unused-parameter \
+  -Wno-sign-compare \
+  -Wno-unused-variable \
+  -Wno-unused-function \
+  -Wno-ignored-attributes \
+  -Wno-missing-braces \
+  -Wno-ignored-pragmas
 
 # Configure support for threads.
 ifeq ($(THREAD_MODEL), single)