Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Fixes |
| 2 | |
| 3 | include/gtk-2.0/gtk/gtkitemfactory.h:47:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] |
| 4 | typedef void (*GtkItemFactoryCallback) (); |
| 5 | |
| 6 | gcc5 has -Wstrict-prototypes on by default for -Werror so this becomes a build failure for consumers |
| 7 | of this header e.g. matchbox-panel-2 |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | Index: gtk+-2.24.27/gtk/gtkitemfactory.h |
| 13 | =================================================================== |
| 14 | --- gtk+-2.24.27.orig/gtk/gtkitemfactory.h |
| 15 | +++ gtk+-2.24.27/gtk/gtkitemfactory.h |
| 16 | @@ -44,7 +44,7 @@ typedef void (*GtkPrintFunc) (gpoint |
| 17 | * (Note that if we are included from a C++ program () will mean |
| 18 | * (void) so an explicit cast will be needed.) |
| 19 | */ |
| 20 | -typedef void (*GtkItemFactoryCallback) (); |
| 21 | +typedef void (*GtkItemFactoryCallback) (void); |
| 22 | typedef void (*GtkItemFactoryCallback1) (gpointer callback_data, |
| 23 | guint callback_action, |
| 24 | GtkWidget *widget); |