* Zbigniew Komarnicki: > Is this OK or is this a bug, when the wariable 'n' is > initializing by negative value? There no any warning. > Is this normal? I know that value -5 is converted > to unsigned but probably this should by printed a warning, > when this is a constant value. What do you think about this?
$ g++ -Wsign-conversion t.cc t.cc: In function ‘int main()’: t.cc:7:25: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] This is with GCC 4.7 in wheezy. This warning isn't in -Wall or -Wextra, probably because the false-positive rate is atrocious. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87ip7hqher....@mid.deneb.enyo.de