summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-28 11:34:14 +0200
committerraveit65 <[email protected]>2019-10-01 09:54:59 +0200
commitb155f9d6fed0d33da27bed707276d48482ac1e7c (patch)
tree3784566d983f8315ec5c0133217323bb29b086eb /configure.ac
parent310ad6d6bc46115ac8eaa8c1b5e6e9e3f9eb6290 (diff)
downloadmate-system-monitor-b155f9d6fed0d33da27bed707276d48482ac1e7c.tar.bz2
mate-system-monitor-b155f9d6fed0d33da27bed707276d48482ac1e7c.tar.xz
Use MATE_COMPILE_WARNINGS and MATE_CXX_WARNINGS macros
- It adds WARN_CFLAGS to CFLAGS, and WARN_CXXLAGS to CXXFLAGS - By default, --enable-cxx-warnings=yes --enable-compile-warnings=yes - It prints the warning flags in configure summary
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 5 insertions, 22 deletions
diff --git a/configure.ac b/configure.ac
index f7001b4..b86173c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,27 +60,8 @@ fi
AM_CONDITIONAL(HAVE_SYSTEMD, [test "$have_systemd" = "yes"])
# Compiler warnings
-MATE_COMPILE_WARNINGS([maximum])
-
-AC_ARG_ENABLE(more-warnings,
-[AC_HELP_STRING([--enable-more-warnings],[Maximum compiler warnings])],
-set_more_warnings="$enableval",[
- set_more_warnings=yes
-])
-AC_MSG_CHECKING(for more warnings, including -Werror)
-if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
- AC_MSG_RESULT(yes)
- CFLAGS="\
- -Wall \
- -Winline \
- -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
- -Wnested-externs -Wpointer-arith \
- -Wcast-align -Wsign-compare \
- $CFLAGS"
- CXXFLAGS="-Wall $CXXFLAGS"
-else
- AC_MSG_RESULT(no)
-fi
+MATE_COMPILE_WARNINGS([yes])
+MATE_CXX_WARNINGS([yes])
dnl CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden $CXXFLAGS"
dnl CXXFLAGS="-fvisibility-inlines-hidden $CXXFLAGS"
@@ -117,9 +98,11 @@ Configuration:
Source code location: ${srcdir}
C Compiler: ${CC}
- C++ Compiler: ${CXX}
CFLAGS: ${CFLAGS}
+ WARN_CFLAGS: ${WARN_CFLAGS}
+ C++ Compiler: ${CXX}
CXXFLAGS: ${CXXFLAGS}
+ WARN_CXXFLAGS: ${WARN_CXXFLAGS}
Maintainer mode: ${USE_MAINTAINER_MODE}
Systemd support: ${have_systemd}
"