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" } */
}

Reply via email to