The proper way to disable warnings is to use the DISABLED_WARNINGS arguments. 
In this particular case, there was already a pragma but due to incorrect 
restrictions it did not apply to clang.

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

Commit messages:
 - 8353458: Don't pass -Wno-format-nonliteral to CFLAGS

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

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

Reply via email to