RFR: 8339364: AIX build fails: various unused variable and function warnings [v3]
    Matthias Baesken 
    mbaesken at openjdk.org
       
    Tue Sep  3 07:26:53 UTC 2024
    
    
  
> We get a couple of warnings as errors on AIX because of unused variables or functions , for example :
> /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c:665:10: error: unused variable 'exePath' [-Werror,-Wunused-variable]
>     char exePath[PATH_MAX];
>          ^
> /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c:668:9: error: unused variable 'ret' [-Werror,-Wunused-variable]
>     int ret;
>         ^
> /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c:664:10: error: unused variable 'fn' [-Werror,-Wunused-variable]
>     char fn[32];
>          ^
> 
> This seems to be related to the recent make changes
> 8339156: Use more fine-granular clang unused warnings
> https://bugs.openjdk.org/browse/JDK-8339156
> (we use clang too on AIX)
Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
  TimeZone_md move platform stuff
-------------
Changes:
  - all: https://git.openjdk.org/jdk/pull/20812/files
  - new: https://git.openjdk.org/jdk/pull/20812/files/082e6f60..e20948ca
Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20812&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20812&range=01-02
  Stats: 8 lines in 1 file changed: 2 ins; 6 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/20812.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20812/head:pull/20812
PR: https://git.openjdk.org/jdk/pull/20812
    
    
More information about the core-libs-dev
mailing list