question regarding new warning
Daniel Gutson
daniel.gutson@tallertechnologies.com
Wed Mar 26 15:05:00 GMT 2014
Hi,
assigning a negative literal to an unsigned variable issues no warning:
unsigned int x;
x =- 4;
This is specially important in typos when -= was intended instead of =-
Would be acceptable if I add a new warning to handle this, i.e.
-Wnegative-to-unsigned
or alike?
Thanks,
Daniel.
--
Daniel F. Gutson
Chief Engineering Officer, SPD
San Lorenzo 47, 3rd Floor, Office 5
Córdoba, Argentina
Phone: +54 351 4217888 / +54 351 4218211
Skype: dgutson
More information about the Gcc
mailing list