changeset 10220:06850b5a8bc1 jdk-9+151

8171928: Build fails on Oracle Linux 7 with unused parameter warning Reviewed-by: kcr
author ddhill
date Thu, 22 Dec 2016 11:33:37 -0800
parents 4d72bb1f6d81
children 993d05f1e922 2a0ff4fb858d
files modules/javafx.graphics/src/main/native-glass/gtk/glass_general.cpp
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.graphics/src/main/native-glass/gtk/glass_general.cpp	Thu Dec 22 13:16:14 2016 -0500
+++ b/modules/javafx.graphics/src/main/native-glass/gtk/glass_general.cpp	Thu Dec 22 11:33:37 2016 -0800
@@ -826,7 +826,12 @@
 glass_window_apply_shape_mask(GdkWindow *window,
     void* data, uint width, uint height)
 {
-#ifndef GLASS_GTK3
+#ifdef GLASS_GTK3
+    (void) window;
+    (void) data;
+    (void) width;
+    (void) height;
+#else
         GdkPixbuf* pixbuf = gdk_pixbuf_new_from_data((guchar *) data,
                 GDK_COLORSPACE_RGB, TRUE, 8, width, height, width * 4, NULL, NULL);