[clang] Carving out -Wformat warning about scoped enums into a subwarning (PR #88595)

Karl-Johan Karlsson via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 14 23:19:45 PDT 2024


================
@@ -12,8 +12,8 @@
 // RUN: %clang_cc1 -triple=x86_64-pc-linux-gnu -std=c11 -fsyntax-only -Wformat -verify=okay %s
 
 // Verify that -Wformat-signedness with -Wno-format are not reported (gcc compat).
----------------
karka228 wrote:

The -Wformat-signedness warning was implemented to work the same way as the same warning do in gcc. This patch seems to remove that gcc compatibility. With this patch `-Wformat-signedness` is now controlled by `-Wformat-pedantic` instead of `-Wformat` (as in gcc). I don't know how important it is for clang to be gcc compatible in this way (@AaronBallman  what do you think?).  At least this comment need to be updated as it no longer match the test below.


https://github.com/llvm/llvm-project/pull/88595


More information about the cfe-commits mailing list