This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [5.0] PR60194 [c-family] add -Wformat-signedness to warn about %d/%u signedness mismatch
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 Feb 2014 23:40:43 +0000
- Subject: Re: [5.0] PR60194 [c-family] add -Wformat-signedness to warn about %d/%u signedness mismatch
- Authentication-results: sourceware.org; auth=none
- References: <20140218161752 dot GC18405 at physik dot fu-berlin dot de>
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 issues
> in a bigger code.
>
> Bootstrapped and regtested on x86-64-gnu-linux.
> OK when Stage 1 opens again?
OK.
--
Joseph S. Myers
joseph@codesourcery.com