maximize warning level in debug builds

Mon, 19 May 2025 15:09:16 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 19 May 2025 15:09:16 +0200
changeset 47
c1046605091a
parent 46
7e099403e5b0
child 48
c7b37d5e26cf

maximize warning level in debug builds

make/clang.mk file | annotate | diff | comparison | revisions
make/gcc.mk file | annotate | diff | comparison | revisions
--- a/make/clang.mk	Mon May 19 13:58:19 2025 +0200
+++ b/make/clang.mk	Mon May 19 15:09:16 2025 +0200
@@ -1,5 +1,5 @@
 CXXFLAGS = -fno-exceptions -fno-rtti
-DEBUG_CXXFLAGS = -g
+DEBUG_CXXFLAGS = -g -Wall -Wextra -Werror
 RELEASE_CXXFLAGS = -O3 -DNDEBUG
 LDFLAGS =
 
--- a/make/gcc.mk	Mon May 19 13:58:19 2025 +0200
+++ b/make/gcc.mk	Mon May 19 15:09:16 2025 +0200
@@ -1,5 +1,5 @@
 CXXFLAGS = -fno-exceptions -fno-rtti
-DEBUG_CXXFLAGS = -g
+DEBUG_CXXFLAGS = -g -Wall -Wextra -Werror
 RELEASE_CXXFLAGS = -O3 -DNDEBUG
 LDFLAGS = -s
 

mercurial