[gnome-packagekit] Don't use the deprecated GNOME_COMPILE_WARNINGS
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Don't use the deprecated GNOME_COMPILE_WARNINGS
- Date: Thu, 25 Aug 2016 08:22:07 +0000 (UTC)
commit 81bafd92b0ecf8e21091698f97d43ac1d895a6fc
Author: Richard Hughes <richard hughsie com>
Date: Thu Aug 25 09:21:38 2016 +0100
Don't use the deprecated GNOME_COMPILE_WARNINGS
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=769929
configure.ac | 6 +++---
src/gpk-enum.c | 2 ++
src/gpk-update-viewer.c | 2 ++
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3b50f6d..39d3355 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,7 +20,7 @@ GTK_DOC_CHECK(1.9)
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
-GNOME_COMPILE_WARNINGS([maximum],[
+WARN_CFLAGS_EXTRA="
-Wmissing-declarations
-Wcast-align
-Wwrite-strings
@@ -41,8 +41,8 @@ GNOME_COMPILE_WARNINGS([maximum],[
-Wmissing-parameter-type
-Woverride-init
-Wno-discarded-qualifiers
- -Wformat-signedness
-])
+ -Wformat-signedness"
+AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS], [yes], [$WARN_CFLAGS_EXTRA])
dnl ---------------------------------------------------------------------------
dnl - xsltproc
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 4f15fae..9067f01 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -21,6 +21,8 @@
#include "config.h"
+#pragma GCC diagnostic ignored "-Wswitch-enum"
+
#include <glib.h>
#include <glib/gi18n.h>
#include <packagekit-glib2/packagekit.h>
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index b274401..26d7ad2 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -21,6 +21,8 @@
#include "config.h"
+#pragma GCC diagnostic ignored "-Wswitch-enum"
+
#include <gdk/gdkkeysyms.h>
#include <glib/gi18n.h>
#include <glib/gi18n.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]