--- Comment #1 from jay dot krell at cornell dot edu 2010-08-21 22:13
---
clarification, where I assert what gives no warning, I was just testing with
like:
-bash-3.00$ cat 1.c
unsigned a = (unsigned)-1;
unsigned b = (0u - 1u);
I didn't yet test changing coverage.c.
--
http://gcc
--- Comment #2 from schwab at linux-m68k dot org 2010-08-22 08:16 ---
Assigning -1 to an unsigned type is always safe.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45372
--- Comment #3 from jay dot krell at cornell dot edu 2010-08-22 08:56
---
Best imho to put in the cast to quash the warning.
To be warning free -- esp. given how close you already are.
Sometimes I think warning-free across a range of compilers is untenable.
But you are in fact already v
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45372
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |FIXED
Target Milestone|---