Re: branch-1.6 distcheck failure: printf %* and integer type

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Ralf Wildenhues on 11/27/2009 12:39 PM:
> Hi Eric,
> 
> I need the following patch to get branch-1.6 M4 to pass distcheck on
> GNU/Linux.
> 
> cc1: warnings being treated as errors
> ../../src/builtin.c: In function 'm4_maketemp':
> ../../src/builtin.c:1674: warning: field precision should have type 'int', but argument 3 has type 'size_t' [-Wformat]
> [...]
> ../../src/macro.c:750: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' [-Wformat]

Thanks.  Though I'd rather use %zd than a cast, since m4's use of gnulib
guarantees it will work.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksQOJMACgkQ84KuGfSFAYC8swCeOBeCTZ1sjYjPJemAofn+psR6
J9UAnjqf239zWNy1WClcY4MOW11xTmIC
=KGef
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.