gtk+: Correct function prototype

This is turned on by default in gcc-5 so far
we have been getting by this issue but time to fix it
has now come

Change-Id: I012248731de0be7a9b7e232073746360fe6c83dd
(From OE-Core rev: 8d8db821d7bcf30079f5a71c255481b12ec00e17)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2015-04-23 20:35:27 -07:00
committed by Richard Purdie
parent 4c74306a3e
commit fb4478e20e
2 changed files with 25 additions and 0 deletions

View File

@@ -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);

View File

@@ -9,6 +9,7 @@ SRC_URI = "http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-${PV}.tar.xz \
file://hardcoded_libtool.patch \
file://toggle-font.diff;striplevel=0 \
file://doc-fixes.patch \
file://strict-prototypes.patch \
"
SRC_URI[md5sum] = "b1e890e15602c5bcb40d85b13fe046fd"