]> git.proxmox.com Git - wasi-libc.git/commitdiff
Add -Wall -Wextra -Werror to the build.
authorDan Gohman <dev@sunfishcode.online>
Fri, 5 Feb 2021 00:27:52 +0000 (16:27 -0800)
committerDan Gohman <dev@sunfishcode.online>
Fri, 5 Feb 2021 05:23:10 +0000 (21:23 -0800)
Makefile

index c7ef1697fc51f4e878bef171f686626febdc6c70..f9a6f69f3677d074b6526fcc317f12842102313b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -188,6 +188,8 @@ 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
 
 # Configure support for threads.
 ifeq ($(THREAD_MODEL), single)