While fixing JDK-8080775, I found about 1000 asserts with an empty string as the message. GCC warns for empty format strings, so I had to add -Wno-format-zero-length in the linux makefile.
This created problems for older GCC versions,JDK-8138733.
We should write real messages in these 1000 asserts. That would allow us to remove the flag to GCC, and remove the GCC dependencies in debug.hpp.
This created problems for older GCC versions,
We should write real messages in these 1000 asserts. That would allow us to remove the flag to GCC, and remove the GCC dependencies in debug.hpp.
- relates to
-
JDK-8138733 Fix build: gcc < 4.8 doesn't grok -Wno-format-zero-length added in 8080775
-
- Resolved
-
-
JDK-8080775 Better argument formatting for assert() and friends
-
- Resolved
-