[gnome-multi-writer] trivial: Actually apply the warning flags
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-multi-writer] trivial: Actually apply the warning flags
- Date: Sat, 27 Aug 2016 07:32:26 +0000 (UTC)
commit 87f471f45b0498611a4febc709c99389233a5c09
Author: Richard Hughes <richard hughsie com>
Date: Sat Aug 27 08:32:20 2016 +0100
trivial: Actually apply the warning flags
configure.ac | 56 +++++++++++++++++++++++++++++++++++++----------------
src/gmw-device.h | 1 -
2 files changed, 39 insertions(+), 18 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d9b7a5f..594df47 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,30 +30,52 @@ AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE(GETTEXT_PACKAGE, "AC_PACKAGE_NAME", [foo])
AM_GLIB_GNU_GETTEXT
-dnl -------------
-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])
+AC_SUBST(WARN_CFLAGS)
dnl ---------------------------------------------------------------------------
dnl - Check library dependencies
diff --git a/src/gmw-device.h b/src/gmw-device.h
index f76abf0..0ea832b 100644
--- a/src/gmw-device.h
+++ b/src/gmw-device.h
@@ -45,7 +45,6 @@ typedef enum {
GMW_DEVICE_STATE_LAST
} GmwDeviceState;
-GType gmw_device_get_type (void);
GmwDevice *gmw_device_new (void);
const gchar *gmw_device_get_icon (GmwDevice *device);
gchar *gmw_device_get_description (GmwDevice *device);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]