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

Reply via email to