Thanks !
* How far are we then from enabling "warnings as errors" on AIX? :P * I count in the opt/product jdk/jdk AIX build currently 60 remaining matches of compiler warnings . Plus additionally a number of those (probably linker warnings ?) : 1500-029: (W) WARNING: subprogram ... could not be inline Guess we have to suppress / ignore at least most of the linker inlining warnings (we ignore them for a decade IMHO). >From the 60 remaining compiler warnings I mentioned are ~ 30 of type >Wformat : warning: format specifies type 'int *' but the argument has type 'int' [-Wformat] warning: format specifies type 'unsigned long long' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] Guess those can the easily fixed (and should be fixed). Regards, Matthias From: Langer, Christoph Sent: Mittwoch, 17. Juli 2019 09:40 To: Baesken, Matthias <matthias.baes...@sap.com>; Java Core Libs <core-libs-...@openjdk.java.net>; nio-...@openjdk.java.net; net-dev@openjdk.java.net; awt-...@openjdk.java.net Cc: 'ppc-aix-port-...@openjdk.java.net' <ppc-aix-port-...@openjdk.java.net> Subject: RE: RFR : 8227737: avoid implicit-function-declaration on AIX Hi Matthias, looks good, thanks for doing this. How far are we then from enabling "warnings as errors" on AIX? :P Best regards Christoph From: awt-dev <awt-dev-boun...@openjdk.java.net<mailto:awt-dev-boun...@openjdk.java.net>> On Behalf Of Baesken, Matthias Sent: Dienstag, 16. Juli 2019 17:04 To: Java Core Libs <core-libs-...@openjdk.java.net<mailto:core-libs-...@openjdk.java.net>>; nio-...@openjdk.java.net<mailto:nio-...@openjdk.java.net>; net-dev@openjdk.java.net<mailto:net-dev@openjdk.java.net>; awt-...@openjdk.java.net<mailto:awt-...@openjdk.java.net> Cc: 'ppc-aix-port-...@openjdk.java.net' <ppc-aix-port-...@openjdk.java.net<mailto:ppc-aix-port-...@openjdk.java.net>> Subject: [CAUTION] <AWT Dev> RFR : 8227737: avoid implicit-function-declaration on AIX Hello, please review the following AIX related change . It fixes a number of missing inclusions leading to implicit-function-declaration warnings when compiling with the recent xlc16 /xlclang . At various places in the native C coding in jdk, we miss header inclusions on AIX. This leads to warnings like : /nightly/jdk/src/java.base/unix/native/libjava/childproc.c:99:5: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Wimplicit-function-declaration] snprintf(aix_fd_dir, 32, "/proc/%d/fd", getpid()); ^ /nightly/jdk/src/java.base/unix/native/libjava/childproc.c:99:5: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf' or /nightly/jdk/src/java.base/aix/native/libjli/java_md_aix.c:38:5: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] memset((void *)info, 0, sizeof(Dl_info)); /nightly/jdk/src/java.base/aix/native/libjli/java_md_aix.c:38:5: note: include the header <string.h> or explicitly provide a declaration for 'memset' Bug/webrev : https://bugs.openjdk.java.net/browse/JDK-8227737 http://cr.openjdk.java.net/~mbaesken/webrevs/8227737.0/ Thanks, Matthias