]> git.proxmox.com Git - wasi-libc.git/blobdiff - Makefile
Add -Wno-ignored-pragmas.
[wasi-libc.git] / Makefile
index c7ef1697fc51f4e878bef171f686626febdc6c70..bfa49bdbfcfe3fe7709b5e67f62c47801d2e1d0e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -188,6 +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
+# 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)