summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Camera <skonfig@dtnr.ch>2022-08-26 00:32:05 +0200
committerDennis Camera <skonfig@dtnr.ch>2022-08-26 00:32:05 +0200
commit43d023eb1a54a622babc6f02527dd68283af7f4e (patch)
tree27b08547c944436f481e61504472a888645ee3ea
parentae193be2239144acb306b8ffac408130db441ce9 (diff)
downloadskonfig-c-43d023eb1a54a622babc6f02527dd68283af7f4e.tar.gz
skonfig-c-43d023eb1a54a622babc6f02527dd68283af7f4e.zip
Also check compiler support for -Wall -Werror
if the infrastructure is already there…
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac3
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 7ccdca6..9352255 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,5 @@
AM_CPPFLAGS = -DSYSCONFDIR='"${sysconfdir}"' -DLIBEXECDIR='"${libexecdir}/${PACKAGE}"'
AM_CFLAGS = -std=c99 -D_FORTIFY_SOURCE=2
-AM_CFLAGS += -Wall -Werror
AM_CFLAGS += -include config.h
bin_PROGRAMS = skonfig
diff --git a/configure.ac b/configure.ac
index 199a2fc..e384395 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,6 +74,9 @@ check_set_ccopt() {
check_ccopt "${1:?}" && CFLAGS=${CFLAGS-}${CFLAGS:+ }${1:?}
}
+check_set_ccopt -Wall
+check_set_ccopt -Werror
+
check_set_ccopt -pedantic
check_set_ccopt -pedantic-errors
check_set_ccopt -Werror=pedantic