summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-26 19:59:26 +0200
committerraveit65 <[email protected]>2019-10-01 14:14:44 +0200
commit54f10719ae236f67db8505a0217c190bac32c13b (patch)
tree16c7f25f01ce1238b97ab9014943a035b1bbeb69 /configure.ac
parent744f9ff68b10b168bcceb20e550ac0b8239e7fea (diff)
downloadmarco-54f10719ae236f67db8505a0217c190bac32c13b.tar.bz2
marco-54f10719ae236f67db8505a0217c190bac32c13b.tar.xz
Use WARN_CFLAGS which are only set with --enable-compiler-warnings
It removes --enable-more-warnings, since it is recommended to use --enable-compile-warnings=maximum
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 1 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index d20745f1..0e8e19ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,7 @@ AM_INIT_AUTOMAKE([subdir-objects no-dist-gzip dist-xz check-news])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
AX_CHECK_ENABLE_DEBUG()
+MATE_COMPILE_WARNINGS
dnl **************************************************************************
dnl Library version information
@@ -54,17 +55,6 @@ AC_CHECK_SIZEOF(__int64)
## byte order
AC_C_BIGENDIAN
-#### Warnings
-AX_APPEND_COMPILE_FLAGS([-Wall -Wcast-align -Wchar-subscripts -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wsign-compare -Wshadow], [CFLAGS])
-AC_ARG_ENABLE(more-warnings,
- AC_HELP_STRING([--enable-more-warnings], [Maximum compiler warnings]),
- set_more_warnings="$enableval",
- set_more_warnings=no
-)
-if test "$set_more_warnings" != "no"; then
- AX_APPEND_COMPILE_FLAGS([-Wextra], [CFLAGS])
-fi
-
GIO_MIN_VERSION=2.25.10
GTK_MIN_VERSION=3.22.0