You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Ralf S. Engelschall" <rs...@engelschall.com> on 1999/05/21 14:11:29 UTC

Can we get rid of %qd?

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....

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

Re: Can we get rid of %qd?

Posted by Tony Finch <do...@dotat.at>.
Jim Jagielski <ji...@devsys.jaguNET.com> wrote:
>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....
>> 
>> 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);
>
>What does the 'q' qualifier mean/do ?

Like 'l' but for quadwords (64 bit).

Tony.
-- 
f.a.n.finch   dot@dotat.at   fanf@demon.net   black dog

Re: Can we get rid of %qd?

Posted by Marc Slemko <ma...@znep.com>.
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
>