[Bug c/98260] New: volatile triggers incorrect warning "set but not used"
muecker at gwdg dot de
gcc-bugzilla@gcc.gnu.org
Sun Dec 13 15:30:53 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98260
Bug ID: 98260
Summary: volatile triggers incorrect warning "set but not used"
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: muecker at gwdg dot de
Target Milestone: ---
This is similar to 98029 and caused by the same change but different.
void g(void)
{
int i = 0;
volatile int x;
(x, i++); /* { dg-bogus "set but not used" } */
}
More information about the Gcc-bugs
mailing list