--- a/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c Fri Mar 02 19:10:12 2018 +0100
+++ b/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c Sat Mar 03 08:21:47 2018 +0100
@@ -227,7 +227,7 @@
/**
* Functions for sun_awt_X11_GtkFileDialogPeer.c
*/
-static void gtk3_file_chooser_load()
+static void gtk3_file_chooser_load(void)
{
fp_gtk_file_chooser_get_filename = dl_symbol(
"gtk_file_chooser_get_filename");
@@ -254,7 +254,7 @@
fp_gdk_x11_drawable_get_xid = dl_symbol("gdk_x11_window_get_xid");
}
-static void empty() {}
+static void empty(void) {}
static gboolean gtk3_version_3_10 = TRUE;
static gboolean gtk3_version_3_14 = FALSE;
@@ -643,7 +643,7 @@
return NULL;
}
-static int gtk3_unload()
+static int gtk3_unload(void)
{
int i;
char *gtk3_error;
@@ -679,7 +679,7 @@
/* Dispatch all pending events from the GTK event loop.
* This is needed to catch theme change and update widgets' style.
*/
-static void flush_gtk_event_loop()
+static void flush_gtk_event_loop(void)
{
while((*fp_g_main_context_iteration)(NULL));
}
@@ -688,7 +688,7 @@
* Initialize components of containment hierarchy. This creates a GtkFixed
* inside a GtkWindow. All widgets get realized.
*/
-static void init_containers()
+static void init_containers(void)
{
if (gtk3_window == NULL)
{
@@ -897,7 +897,7 @@
return arrow;
}
-static GtkAdjustment* create_adjustment()
+static GtkAdjustment* create_adjustment(void)
{
return (GtkAdjustment *)
(*fp_gtk_adjustment_new)(50.0, 0.0, 100.0, 10.0, 20.0, 20.0);