Re: miltertest compiler warnings
On 27/01/13 16:14, Scott Kitterman wrote:
> I'm not sure if there is any potential for these type mismatches to cause an
> actual problem or not, but I thought I'd mention them just in case:
>
> i486-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./../libopendkim -
> I/usr/include -I/usr/include/lua5.1 -D_FORTIFY_SOURCE=2 -
> DCONFIG_BASE=\"/etc\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -
> Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -MT miltertest-
> miltertest.o -MD -MP -MF .deps/miltertest-miltertest.Tpo -c -o miltertest-
> miltertest.o `test -f 'miltertest.c' || echo './'`miltertest.c
> miltertest.c: In function 'mt_bodystring':
> miltertest.c:2836:11: warning: format '%lu' expects argument of type 'long
> unsigned int', but argument 4 has type 'size_t' [-Wformat]
> miltertest.c: In function 'mt_bodyrandom':
> miltertest.c:2927:12: warning: format '%lu' expects argument of type 'long
> unsigned int', but argument 4 has type 'size_t' [-Wformat]
> miltertest.c: In function 'mt_bodyfile':
> miltertest.c:3028:13: warning: format '%lu' expects argument of type 'long
> unsigned int', but argument 4 has type 'ssize_t' [-Wformat]
> miltertest.c: In function 'main':
> miltertest.c:3981:12: warning: format '%lu' expects argument of type 'long
> unsigned int', but argument 5 has type 'ssize_t' [-Wformat]
>
%z to the rescue
Received on Sun Jan 27 2013 - 05:39:46 PST
This archive was generated by hypermail 2.3.0
: Sun Jan 27 2013 - 05:45:01 PST