From 1de945b2b2ad5506f7909ced21f923ea8a62a09c Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 19 Mar 2018 12:39:57 -0300 Subject: configure: Add -Wformat -Werror=format-security to default CFLAGS Matches debian build scripts. Also expands the condition to gcc or clang. I'd rather remove this, apparently it exists because some opensolaris compiler didn't have -Wall which seems absurd to me, but whatever. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 643e70f1..093fbf3d 100755 --- a/configure +++ b/configure @@ -334,9 +334,9 @@ else fi echo "CC=$CC" >> Makefile.settings; -if echo $CC | grep -qw gcc; then +if echo $CC | grep -qw 'gcc\|clang'; then # Apparently -Wall is gcc-specific? - echo CFLAGS+=-Wall >> Makefile.settings + echo CFLAGS+=-Wall -Wformat -Werror=format-security >> Makefile.settings fi if [ -z "$LD" ]; then -- cgit v1.2.3