[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Building nightly builds with GCC 4.7.4



---------------------------------------------------
> Hi all,
> 
> I'm upgrading the build machine to GCC 4.7.4, from 4.5.4, and the trunk
> is throwing a few errors. I've checked this with 4.5.4 and it still
> builds there too.
> 
> I've attached a patch that fixes them, but I'd like people to review
> before I submit.
> 
> Also, there's a problem in XAAES that results in this.
> 
> ../xa_fnts.c: In function 'fnts_extb_callout':
> ../xa_fnts.c:240:7: error: assuming signed overflow does not occur when
> assuming that (X + c) < X is always false [-Werror=strict-overflow]
> cc1: all warnings being treated as errors
> 
> Helmut - can you take a look ?

I guess it means this:

      y = area->y + 4;//(area->h >> 1);
...
      if (y < area->y)
        y = area->y;

y will always be > area->y, and the test is nonsense. I'll patch that.

-Helmut