From: David Malcolm Date: Wed, 11 Jun 2025 00:06:37 +0000 (-0400) Subject: gimple-ssa-warn-access: add missing auto_diagnostic_group X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b619b4d7e7a5078d4fe8b1c4e89258ce4d21be4d;p=thirdparty%2Fgcc.git gimple-ssa-warn-access: add missing auto_diagnostic_group Spotted whilst implementing nesting support in the experimental-html diagnostic sink. gcc/ChangeLog: * gimple-ssa-warn-access.cc (pass_waccess::maybe_check_dealloc_call): Add missing auto_diagnostic_group to nest the "returned from %qD" note within the warning. Signed-off-by: David Malcolm --- diff --git a/gcc/gimple-ssa-warn-access.cc b/gcc/gimple-ssa-warn-access.cc index 305b63567fe..0f4aff6b59b 100644 --- a/gcc/gimple-ssa-warn-access.cc +++ b/gcc/gimple-ssa-warn-access.cc @@ -3767,6 +3767,7 @@ pass_waccess::maybe_check_dealloc_call (gcall *call) if (is_gimple_call (def_stmt)) { + auto_diagnostic_group d; bool warned = false; if (gimple_call_alloc_p (def_stmt)) {