[clang] [Clang] Use ExtWarn for static local variable in extern inline function (fixes #39524) (PR #166332)
V S Susi Krishna via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 5 08:55:55 PST 2025
================
@@ -6339,9 +6339,11 @@ def warn_c2y_compat_internal_in_extern_inline : Warning<
"using static %select{function|variable}0 %1 in an inline function with "
"external linkage is incompatible with standards before C2y">,
InGroup<CPre2yCompat>, DefaultIgnore;
-def warn_static_local_in_extern_inline : Warning<
- "non-constant static local variable in inline function may be different "
- "in different files">, InGroup<StaticLocalInInline>;
+def warn_static_local_in_extern_inline
+ : ExtWarn<"non-constant static local variable in inline function may be "
+ "different "
+ "in different files">,
+ InGroup<StaticLocalInInline>;
----------------
Susikrishna wrote:
Done. Added the release note and reverted unrelated formatting changes.
https://github.com/llvm/llvm-project/pull/166332
More information about the cfe-commits
mailing list