noWarn-hs-rt (original) (raw)

Since 8030350: Enable additional compiler warnings for GCC, older gccs can not build hotspot any more.

They don't know the option introduced in that change:
cc1plus: error: unrecognized command line option "-Wno-error=format-nonliteral"

I saw this with gcc 4.1.2 on linuxppc64 and linuxx86_64, and with gcc 3.3.3 on linuxx86_64. Gcc 4.3.4 works.

Fix this by either adapting hotspot code not to issue these warnings (two places in the code must be adapted), or by adding -Xno-format-nonliteral for older gccs.