(Command-line option to suppress warning: -w-ngu)
Basically, it makes no sense to negate an unsigned value because the result will still be unsigned.
#pragma warn +ngu unsignedfoo(unsigned u) { return-u; }
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|