RFR: Even more gcc warnings
mikael.vidstedt at oracle.com
Sat Feb 15 01:54:15 UTC 2014
A drive-by set of warning fixes:
Set the size of the array explicitly to increase likelihood of enum and
struct array being in sync. Arguably this should be changed to use the
(new) [<enumName>] = <value> instead.
Initialize all the fields in the (redundant) terminator struct explicitly.
Remove unused macro.
Get the prototype for jio_snprintf from jvm.h to address an implicit
Comparisons with string literals is undefined behavior - keep track of
whether the string should be freed explicitly with a boolean instead.
The macro is supposed to expand to a void function declaration, but
forgets to actually add the "void".
More information about the core-libs-dev