help-zile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [zile-devel] 2.2.1: excessive compiler warning flags


From: Reuben Thomas
Subject: Re: [zile-devel] 2.2.1: excessive compiler warning flags
Date: Tue, 19 Jul 2005 16:01:46 +0200 (CEST)

On Fri, 15 Jul 2005, Christian Weisgerber wrote:

I just looked at building zile 2.2.1 on amd64 and I'm getting excessive
compiler warnings, e.g.:

--------------->
cc -c -I../doc -I.. -I../src -O2 -pipe -Wall -W -Wmissing-prototypes 
-Wstrict-prototypes -Wconversion -pedantic ./mkdoc.c
In file included from mkdoc.c:18:
../src/vasprintf.c: In function `type_s':
../src/vasprintf.c:205: warning: passing arg 2 of `print_it' with different 
width due to prototype

Looking at these warnings again, I think these may be hard to remove, as I get similar warnings when passing "TRUE" and "FALSE" as parameters to functions expecting bool on i386, even when I cast them to bool.

Can you try casting one of the constants to size_t and telling me whether this fixes it or not, and also the version of gcc you're using?

If casting fixes the problem, I'm happy to put all the relevant casts in (or perhaps better, use constants of the correct length). If not, I'm inclined to see whether gcc 4 fixes the problem, because so far I have benefitted enormously from all the warning settings and I am loth to turn them off.

You can of course set the CFLAGS for your own builds to get rid of that particular warning.

--
http://rrt.sc3d.org/ | The only person worth beating is yourself



reply via email to

[Prev in Thread] Current Thread [Next in Thread]