/ChangeLog:
* gimplify.cc (gimplify_modify_expr): Add suppress_warning
* tree-cfg.cc (do_warn_unused_result): Check warning_suppressed_p
gcc/testsuite/ChangeLog:
* c-c++-common/attr-warn-unused-result-2.c: New test.
Signed-off-by: Jeremy Rifkin
---
gcc/cp/call.cc
Hi,
I'm bumping this patch.
Jeremy
On Mon, Jun 9, 2025 at 8:00 PM Jeremy Rifkin wrote:
>
> Hi,
> This fixes PR c/82134 which concerns gcc emitting an incorrect unused
> result diagnostic for empty types. This diagnostic is emitted from
> tree-cfg.cc because of a couple code
rning if I discarded the result, even if it's being instantiated
with T = empty type.
Cheers,
Jeremy
On Tue, Jul 8, 2025 at 11:23 AM Jason Merrill wrote:
>
> On 6/9/25 9:00 PM, Jeremy Rifkin wrote:
> > Hi,
> > This fixes PR c/82134 which concerns gcc emitting an incorrect unu