tell gcc to ignore invalid gtk header files
authorLennart Poettering <lennart@poettering.net>
Sat, 21 Feb 2009 03:12:52 +0000 (04:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 21 Feb 2009 03:12:52 +0000 (04:12 +0100)
src/pulsecore/proplist-util.c
src/tests/gtk-test.c

index bdae0e6..d78eac0 100644 (file)
@@ -48,6 +48,7 @@ static G_CONST_RETURN gchar* _g_get_application_name(void) PA_GCC_WEAKREF(g_get_
 #endif
 
 #if defined(HAVE_GTK) && defined(PA_GCC_WEAKREF)
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
 #include <gtk/gtk.h>
 #include <gdk/gdkx.h>
 static G_CONST_RETURN gchar* _gtk_window_get_default_icon_name(void) PA_GCC_WEAKREF(gtk_window_get_default_icon_name);
index a2d3e69..092ba25 100644 (file)
@@ -17,6 +17,8 @@
   USA.
 ***/
 
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif