From 7e9ff09fcb2366b383b7ebbec80d2f6fff117290 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 13 Mar 2018 01:29:54 +0100 Subject: New upstream version 1.10.6 --- m4/compiler_options.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'm4') 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 ] + [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) -- cgit 1.3.0-6-gf8a5