httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: Can we get rid of %qd?
Date Fri, 21 May 1999 15:55:30 GMT
On Fri, 21 May 1999, Ralf S. Engelschall wrote:

> 
> Does anyone know how we can get rid of this warning the correct way?
> It nerves me because it's the only remaining warning with EGCS 1.1.2....

Then don't give your compiler flags to tell it to whine about things that
aren't ANSI C even though Apache is only using it because it knows your
system supports it.

> 
> egcc -c  -I../../os/unix -I../../include   -funsigned-char -DTARGET=\"apache\"
>    -pipe -O2 -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-align
>    -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline
>    `../../apaci` mod_include.c
> mod_include.c: In function `handle_fsize':
> mod_include.c:1139: warning: ANSI C does not support the `q' length modifier
> 
> :> grep -n %q src/modules/standard/mod_include.c 
> 1138:                    /* ap_snprintf can't handle %qd */
> 1139:                    sprintf(tag, "%qd", finfo.st_size);
> 
>                                        Ralf S. Engelschall
>                                        rse@engelschall.com
>                                        www.engelschall.com
> 


Mime
View raw message