aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-gnome/gtk+/gtk+/strict-prototypes.patch
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-07-11 11:04:20 +0100
committerKhem Raj <raj.khem@gmail.com>2019-07-11 14:01:28 -0700
commit4362a953e4ee50314ccdd994cb7cf625ee988441 (patch)
tree3a336e3af0b7ec4ce981f0d679bbdc271efcbd30 /meta-oe/recipes-gnome/gtk+/gtk+/strict-prototypes.patch
parentb0f86ee5a98d197afe32f1325d92ea2fa2e4b56d (diff)
downloadmeta-openembedded-contrib-4362a953e4ee50314ccdd994cb7cf625ee988441.tar.gz
gtk+: add (from oe-core)
This is GTK+ 2, which is obsolete. It has just been removed from oe-core, so add it into meta-oe for any remaining users. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-gnome/gtk+/gtk+/strict-prototypes.patch')
-rw-r--r--meta-oe/recipes-gnome/gtk+/gtk+/strict-prototypes.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-oe/recipes-gnome/gtk+/gtk+/strict-prototypes.patch b/meta-oe/recipes-gnome/gtk+/gtk+/strict-prototypes.patch
new file mode 100644
index 0000000000..96e1f5feac
--- /dev/null
+++ b/meta-oe/recipes-gnome/gtk+/gtk+/strict-prototypes.patch
@@ -0,0 +1,24 @@
+Fixes
+
+include/gtk-2.0/gtk/gtkitemfactory.h:47:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
+ typedef void (*GtkItemFactoryCallback) ();
+
+gcc5 has -Wstrict-prototypes on by default for -Werror so this becomes a build failure for consumers
+of this header e.g. matchbox-panel-2
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Index: gtk+-2.24.27/gtk/gtkitemfactory.h
+===================================================================
+--- gtk+-2.24.27.orig/gtk/gtkitemfactory.h
++++ gtk+-2.24.27/gtk/gtkitemfactory.h
+@@ -44,7 +44,7 @@ typedef void (*GtkPrintFunc) (gpoint
+ * (Note that if we are included from a C++ program () will mean
+ * (void) so an explicit cast will be needed.)
+ */
+-typedef void (*GtkItemFactoryCallback) ();
++typedef void (*GtkItemFactoryCallback) (void);
+ typedef void (*GtkItemFactoryCallback1) (gpointer callback_data,
+ guint callback_action,
+ GtkWidget *widget);