#define WORDS_BIG_ENDIAN 0
int foo(int x, int y)
{
  int a = x;
  int b = y;
  int j = WORDS_BIG_ENDIAN ? a : b;
  return j;
}

which actually breaks bootstrap with C++.


-- 
           Summary: Bogus set-but-not-used warning
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44362

Reply via email to