RFR: 8355594: Warnings occur when building with clang and enabling ubsan

Matthias Baesken mbaesken at openjdk.org
Mon Apr 28 15:28:19 UTC 2025


When building ubsan-enabled binaries with the clang toolchain (e.g. on AIX or Linux), we get the following warnings :


warning: unknown warning option '-Wno-stringop-truncation'; did you mean '-Wno-string-concatenation'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-format-overflow'; did you mean '-Wno-shift-overflow'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-stringop-overflow'; did you mean '-Wno-shift-overflow'? [-Wunknown-warning-option]

-------------

Commit messages:
 - JDK-8355594

Changes: https://git.openjdk.org/jdk/pull/24924/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24924&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8355594
  Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/24924.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24924/head:pull/24924

PR: https://git.openjdk.org/jdk/pull/24924


More information about the build-dev mailing list