RFR(XXS): 8019382 : PPC64: Fix bytecodeInterpreter to compile with '-Wunused-value'

Volker Simonis volker.simonis at gmail.com
Mon Jul 1 09:28:02 PDT 2013


this is a patch from the PowerPC/AIX porting project but it only
changes shared code and it fixes a build problem in the C++
interpreter which also affects the Zero-Port so I would strongly
recommend to push it right into the hotspot repository.

The problem is related to "8014431 : cleanup warnings indicated by the
-Wunused-value compiler option on linux" which added the
"-Wunused-value" option to the Linux build but did not clean up the
code in the c++ interpreter. This lead to several warnings which are
now treated as errors when compiling bytecodeInterpreter.cpp.

The fix is easy - just cast the offending expressions to void:


Thank you and best regards,

More information about the hotspot-dev mailing list