about summary refs log tree commit diff
path: root/m4
diff options
context:
space:
mode:
authorJeremy Bicha <jbicha@ubuntu.com>2018-03-26 08:35:51 -0400
committerJeremy Bicha <jbicha@ubuntu.com>2018-03-26 08:35:51 -0400
commit95410d8dcdd0433894612785c89b821b9de4cc04 (patch)
tree66c57586825b10af593a84a00ee885aa257b5196 /m4
parent6b60d03d200147c516db40716b1c58e2a86db1a5 (diff)
parentaee9265c9325331914e9fd42ce06e063fabdfcab (diff)
Merge tag 'debian/1.10.6-2' into bionic
network-manager Debian release 1.10.6-2
Diffstat (limited to 'm4')
-rw-r--r--m4/compiler_options.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4
index ccb51f5e..2350571e 100644
--- a/m4/compiler_options.m4
+++ b/m4/compiler_options.m4
@@ -127,6 +127,16 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
 		[union { int a[1]; int b[2]; } c = { 0 }]
 	)
 
+	dnl a new warning in gcc 8, glib 2.55 doesn't play nice yet
+	NM_COMPILER_WARNING([cast-function-type],
+		[#include <glib-object.h>]
+		[typedef struct { GObject parent; } NMObject;]
+		[typedef struct { GObjectClass parent; } NMObjectClass;]
+		[static void nm_object_init (NMObject *object) { } ]
+		[static void nm_object_class_init (NMObjectClass *object) { }]
+		[G_DEFINE_TYPE (NMObject, nm_object, G_TYPE_OBJECT)]
+	)
+
 	CFLAGS="$CFLAGS_MORE_WARNINGS $CFLAGS"
 else
 	AC_MSG_RESULT(no)