]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/c-family/c-indentation.c
Add support for grouping of related diagnostics (PR other/84889)
[thirdparty/gcc.git] / gcc / c-family / c-indentation.c
index 436d61b3c9af0a0632e7ba18a0c53266c1f00171..cff5aec23c23ab173fea705023be8174e4eac7f2 100644 (file)
@@ -609,6 +609,7 @@ warn_for_misleading_indentation (const token_indent_info &guard_tinfo,
                                              body_tinfo,
                                              next_tinfo))
     {
+      auto_diagnostic_group d;
       if (warning_at (guard_tinfo.location, OPT_Wmisleading_indentation,
                      "this %qs clause does not guard...",
                      guard_tinfo_to_string (guard_tinfo.keyword)))