[clang] [clang] Don't warn on zero literals with -std=c2y (PR #149688)

Timothy Herchen via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 20 08:17:01 PDT 2025


================
@@ -44,7 +44,9 @@ static const void *ptr = 0o0;  /* ext-warning {{octal integer literals are a C2y
 #endif
 
 // 0 by itself is not deprecated, of course.
-int k = 0;
+int k1 = 0;
+long k2 = 0l;
+unsigned long long k3 = 0ull;
----------------
anematode wrote:

i like ur attitude

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


More information about the cfe-commits mailing list