This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Don't use %z printf format length specified
- From: Andreas Schwab <schwab at suse dot de>
- To: Michael Matz <matz at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Nov 2018 18:20:01 +0100
- Subject: Re: Don't use %z printf format length specified
- References: <alpine.LSU.2.21.1811141707370.18790@wotan.suse.de>
On Nov 14 2018, Michael Matz <matz@suse.de> wrote:
> Initially I had also casts to long at the various arguments, but I get no
> warning with this variant either, so I removed them again.
That is probably pure luck. size_t is not required to be the same as
unsigned long.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."