When enabling the unused-functions warning on AIX (where clang is used with the recent xlC), we get a couple of warnings as errors.
Example :
jdk/src/hotspot/cpu/ppc/methodHandles_ppc.cpp:53:34: error: unused function 'constant' [-Werror,-Wunused-function]
53 | inline static RegisterOrConstant constant(int value) {
| ^~~~~~~~
1 error generated.
Example :
jdk/src/hotspot/cpu/ppc/methodHandles_ppc.cpp:53:34: error: unused function 'constant' [-Werror,-Wunused-function]
53 | inline static RegisterOrConstant constant(int value) {
| ^~~~~~~~
1 error generated.
- relates to
-
JDK-8377880 Enable unused function warnings in hotspot with clang too
-
- New
-
- links to
-
Commit(master)
openjdk/jdk/1b39d2c2
-
Review(master)
openjdk/jdk/29715