================
@@ -11342,6 +11342,10 @@ def warn_empty_defer_body : Warning<
 def note_empty_body_on_separate_line : Note<
   "put the semicolon on a separate line to silence this warning">;
 
+def warn_redundant_defer: Warning<
+  "redundant use of defer; the deferred statement is executed immediately">,
+  InGroup<RedundantDefer>, DefaultIgnore;
----------------
Sirraide wrote:

The diagnostic should either be on by default or part of something like 
`-Wall`; adding off by default warnings is something we try to avoid nowadays 
because usually no-one turns them on.

https://github.com/llvm/llvm-project/pull/225748
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to