Making gcc "-Wformat" more verbose

Marc Olzheim marcolz at stack.nl
Fri Apr 1 04:13:14 PST 2005


On Wed, Mar 30, 2005 at 08:12:08PM +0200, Marc Olzheim wrote:
> Please have a look at it and tell me whether this could be useful for
> FreeBSD or whether that's a bridge too far...
> 
> The patch is at
> http://www.stack.nl/~marcolz/FreeBSD/gcc-printf.patch.txt
> 
> Besides that, you'll need to include the inttypes.h at
> http://www.stack.nl/~marcolz/FreeBSD/inttypes.h instead of
> /usr/include/inttypes.h
> 
> If you want to compile the kernel with it, make sure to turn of
> -Werror... (Or install into somewhere else then /usr/libexec and use
> CFLAGS=-B<otherdir> to gcc to try it out.

I modified it, so that you need to supply -Wformat-pre-promo in addition
to -Wformat to get the extra output...

Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050401/dc70caaf/attachment.bin


More information about the freebsd-hackers mailing list