changeset 12340:d651b2b6841f

8080695: splashscreen_png.c compile error with gcc 4.9.2 Summary: mark locals volatile to silence gcc arround longjmp Reviewed-by: azvegint, serb
author plevart
date Thu, 02 Jul 2015 08:17:25 +0200
parents 784eaa70193e
children 1085ecd9ffa1
files src/java.desktop/share/native/libsplashscreen/splashscreen_png.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/native/libsplashscreen/splashscreen_png.c	Tue Jun 30 10:37:48 2015 -0700
+++ b/src/java.desktop/share/native/libsplashscreen/splashscreen_png.c	Thu Jul 02 08:17:25 2015 +0200
@@ -48,8 +48,8 @@
     int stride;
     ImageFormat srcFormat;
     png_uint_32 i, rowbytes;
-    png_bytepp row_pointers = NULL;
-    png_bytep image_data = NULL;
+    volatile png_bytepp row_pointers = NULL;
+    volatile png_bytep image_data = NULL;
     int success = 0;
     double gamma;