[gnome-color-manager] Do not use the deprecated GNOME_COMPILE_WARNINGS
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Do not use the deprecated GNOME_COMPILE_WARNINGS
- Date: Thu, 25 Aug 2016 11:34:40 +0000 (UTC)
commit f4dc6e70e06de505adb6e1a6fe3809e662bfff98
Author: Richard Hughes <richard hughsie com>
Date: Thu Aug 25 11:51:56 2016 +0100
Do not use the deprecated GNOME_COMPILE_WARNINGS
configure.ac | 54 ++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 38 insertions(+), 16 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ea73300..d80c0ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,29 +22,51 @@ YELP_HELP_INIT
# validate AppData
APPSTREAM_XML
-GNOME_COMPILE_WARNINGS([maximum],[
- -Wmissing-declarations
+WARN_CFLAGS_EXTRA="
+ -Waggregate-return
+ -Warray-bounds
-Wcast-align
- -Wwrite-strings
- -Wreturn-type
- -Wformat-nonliteral
- -Wmissing-format-attribute
-Wclobbered
+ -Wdeclaration-after-statement
-Wempty-body
+ -Wextra
+ -Wformat=2
+ -Wformat-nonliteral
+ -Wformat-security
+ -Wformat-signedness
-Wignored-qualifiers
- -Wsign-compare
- -Wtype-limits
- -Wuninitialized
- -Waggregate-return
- -Wdeclaration-after-statement
- -Wshadow
- -Wno-strict-aliasing
+ -Wimplicit-function-declaration
+ -Winit-self
-Winline
+ -Wmissing-declarations
+ -Wmissing-format-attribute
+ -Wmissing-include-dirs
+ -Wmissing-noreturn
-Wmissing-parameter-type
- -Woverride-init
+ -Wmissing-prototypes
+ -Wnested-externs
-Wno-discarded-qualifiers
- -Wformat-signedness
-])
+ -Wno-missing-field-initializers
+ -Wno-strict-aliasing
+ -Wno-suggest-attribute=format
+ -Wno-unused-parameter
+ -Wold-style-definition
+ -Woverride-init
+ -Wpacked
+ -Wpointer-arith
+ -Wredundant-decls
+ -Wreturn-type
+ -Wshadow
+ -Wsign-compare
+ -Wstrict-aliasing
+ -Wstrict-prototypes
+ -Wswitch-default
+ -Wtype-limits
+ -Wundef
+ -Wuninitialized
+ -Wunused-but-set-variable
+ -Wwrite-strings"
+AX_APPEND_COMPILE_FLAGS([$WARN_CFLAGS_EXTRA], [WARN_CFLAGS])
dnl ---------------------------------------------------------------------------
dnl - gettext stuff
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]