<AWT Dev> splashscreen_png.c compile error with gcc 4.9.2
peter.levart at gmail.com
Tue May 19 10:50:28 UTC 2015
I hope this is the right thread to post the observation.
Building recent OpenJDK 9 from sources on Fedora 21 fails with this:
In function 'SplashDecodePng':
error: variable 'row_pointers' might be clobbered by 'longjmp' or
png_bytepp row_pointers = NULL;
error: variable 'image_data' might be clobbered by 'longjmp' or 'vfork'
png_bytep image_data = NULL;
cc1: all warnings being treated as errors
gmake: *** Waiting for unfinished jobs....
Awt2dLibraries.gmk:879: recipe for target
gmake: *** [java.desktop-libs] Error 1
make/Main.gmk:168: recipe for target 'java.desktop-libs' failed
I found that making the following change eliminates the compiler error:
Is this the right way to fix it?
More information about the awt-dev