aboutsummaryrefslogtreecommitdiff
path: root/gcc/substring-locations.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/substring-locations.c')
-rw-r--r--gcc/substring-locations.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/substring-locations.c b/gcc/substring-locations.c
index 82f2f45..1981394 100644
--- a/gcc/substring-locations.c
+++ b/gcc/substring-locations.c
@@ -167,6 +167,7 @@ format_warning_n_va (const substring_loc &fmt_loc,
if (substring_within_range)
primary_label = fmt_label;
+ auto_diagnostic_group d;
gcc_rich_location richloc (primary_loc, primary_label);
if (param_loc != UNKNOWN_LOCATION)