diff options
-rw-r--r-- | configure.ac | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 67cccf2..f3a09f4 100644 --- a/configure.ac +++ b/configure.ac @@ -46,13 +46,9 @@ AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS="${CFLAGS} -std=c11"], [ # * etc. # Cf. <https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html> and # <http://git.pehjota.net/overworld-rpg/overworld-rpg.git/tree/configure.ac#n60> -m4_foreach_w([WARN], - [ - -Wpedantic -Wall -Wextra - ], [ - AX_CHECK_COMPILE_FLAG([WARN], [CFLAGS="${CFLAGS} WARN"], [], []) - ] -) +AX_CFLAGS_WARN_ALL() dnl Adds -Wall or equivalent +AX_CHECK_COMPILE_FLAG([-Wpedantic], [AX_APPEND_FLAG([-Wpedantic])]) +AX_CHECK_COMPILE_FLAG([-Wextra], [AX_APPEND_FLAG([-Wextra])]) AX_CHECK_COMPILE_FLAG([-fdiagnostics-color=auto], [CFLAGS="${CFLAGS} -fdiagnostics-color=auto"], [], []) |