summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Camera <skonfig@dtnr.ch>2022-08-21 09:40:54 +0200
committerDennis Camera <skonfig@dtnr.ch>2022-08-21 09:40:54 +0200
commitfbde8ff0312dfd87cd4916207a0077ac4f35d142 (patch)
tree9d47e8800aef19021895548e8ddd81bd3c014e48
parent918927457b353cb717034a4d8497e75b11a82018 (diff)
downloadskonfig-c-fbde8ff0312dfd87cd4916207a0077ac4f35d142.tar.gz
skonfig-c-fbde8ff0312dfd87cd4916207a0077ac4f35d142.zip
[configure.ac] Enable -pedantic, -pedantic-errors, -Werror=pedantic if supported by $CC
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d68cd45..37560ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,6 +65,10 @@ check_set_ccopt() {
check_ccopt "${1:?}" && CFLAGS=${CFLAGS-}${CFLAGS:+ }${1:?}
}
+check_set_ccopt -pedantic
+check_set_ccopt -pedantic-errors
+check_set_ccopt -Werror=pedantic
+
check_set_ccopt -Wformat=2
check_set_ccopt -Wformat-overflow=2