compile in C17 mode in debug builds to detect accidental use of C23 features

Sun, 25 Jan 2026 13:18:26 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 25 Jan 2026 13:18:26 +0100
changeset 293
24b0f47f619c
parent 292
25931abee09f
child 294
4df350dac84f

compile in C17 mode in debug builds to detect accidental use of C23 features

make/gcc.mk file | annotate | diff | comparison | revisions
--- a/make/gcc.mk	Sun Jan 25 13:18:04 2026 +0100
+++ b/make/gcc.mk	Sun Jan 25 13:18:26 2026 +0100
@@ -1,2 +1,3 @@
 # gcc toolchain config
-DEBUG_CFLAGS = -g -Wall -Wextra -Werror -Wno-missing-field-initializers
+# compile in c17 mode in debug builds to check for compatibility
+DEBUG_CFLAGS = -std=c17 -g -Wall -Wextra -Werror -Wno-missing-field-initializers

mercurial