help-zile
[Top][All Lists]
Advanced

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

[zile-devel] 2.2.1: excessive compiler warning flags


From: Christian Weisgerber
Subject: [zile-devel] 2.2.1: excessive compiler warning flags
Date: Fri, 15 Jul 2005 22:48:07 +0200
User-agent: Mutt/1.4.2.1i

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
In file included from mkdoc.c:18:
../src/vasprintf.c: In function `dispatch':
../src/vasprintf.c:280: warning: passing arg 2 of `realloc_buff' with different 
width due to prototype
In file included from mkdoc.c:18:
../src/vasprintf.c: In function `core':
../src/vasprintf.c:512: warning: passing arg 2 of `realloc_buff' with different 
width due to prototype
In file included from ../src/zmalloc.c:32,
                 from mkdoc.c:19:
../src/zile.h: At top level:
../src/zile.h:176: warning: bit-field `mark_active' type invalid in ISO C
In file included from mkdoc.c:19:
../src/zmalloc.c: In function `zmalloc':
../src/zmalloc.c:44: warning: passing arg 2 of `calloc' with different width 
due to prototype
In file included from mkdoc.c:20:
../src/astr.c: In function `astr_replace_char':
../src/astr.c:211: warning: passing arg 5 of `astr_replace_x' with different 
width due to prototype
../src/astr.c: In function `astr_insert':
../src/astr.c:217: warning: passing arg 3 of `astr_replace_x' with different 
width due to prototype
../src/astr.c: In function `astr_insert_cstr':
../src/astr.c:223: warning: passing arg 3 of `astr_replace_x' with different 
width due to prototype
../src/astr.c: In function `astr_insert_char':
../src/astr.c:229: warning: passing arg 3 of `astr_replace_x' with different 
width due to prototype
../src/astr.c:229: warning: passing arg 5 of `astr_replace_x' with different 
width due to prototype
../src/astr.c: In function `astr_remove':
../src/astr.c:234: warning: passing arg 5 of `astr_replace_x' with different 
width due to prototype
mkdoc.c: In function `fdecl':
mkdoc.c:72: warning: passing arg 3 of `strncmp' with different width due to 
prototype
mkdoc.c:77: warning: passing arg 3 of `strncmp' with different width due to 
prototype
mkdoc.c: In function `parse':
mkdoc.c:94: warning: passing arg 3 of `strncmp' with different width due to 
prototype
mkdoc.c:103: warning: passing arg 2 of `astr_substr' with different width due 
to prototype
<---------------

Most of these are caused by int constants being passed as arguments
for size_t parameters (size_t expands to unsigned long on LP64
architectures, i.e., uint64_t), which is totally harmless.  Asking
gcc to complain about this with this string of -W options is excessive
and only obscures real problems.


[I'm not subscribed to zile-devel.]
-- 
Christian "naddy" Weisgerber                          address@hidden



reply via email to

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