[5.0] PR60194 [c-family] add -Wformat-signedness to warn about %d/%u signedness mismatch

2014-02-18 Thread Tobias Burnus
This patch adds a warning to -Wformat=2, which can also be used as -Wformat -Wformat-signedness and which warns when the signedness of the argument doesn't match the one of %x/%u/%d/%i/... That was motivated by a check of cppcheck, which found some issues in a bigger code. Bootstrapped and

Re: [5.0] PR60194 [c-family] add -Wformat-signedness to warn about %d/%u signedness mismatch

2014-02-18 Thread Joseph S. Myers
On Tue, 18 Feb 2014, Tobias Burnus wrote: This patch adds a warning to -Wformat=2, which can also be used as -Wformat -Wformat-signedness and which warns when the signedness of the argument doesn't match the one of %x/%u/%d/%i/... That was motivated by a check of cppcheck, which found some