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

Magnus Ihse Bursie ihse at openjdk.org
Wed Apr 2 09:50:53 UTC 2025


On Wed, 2 Apr 2025 08:00:25 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> How does the __GNUC__ check affect clang?? Isn't that just for gcc?

No, clang disguises as gcc in several ways, and this is one of them. In effect, you can consider `__GNUC__` to be not a check for a particular compiler, but for compliance with the "standard" that gcc defined.

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

PR Comment: https://git.openjdk.org/jdk/pull/24357#issuecomment-2771978347


More information about the build-dev mailing list