Συντάκτης: Giuseppe D'Angelo Ημερομηνία: Προς: ph10 Υ/ο: pcre-dev Αντικείμενο: Re: [pcre-dev] Release candidate for 10.10
On 24 February 2015 at 16:10, <ph10@???> wrote: >
> I've changed my mind, mainly because I can't find a way of getting gcc
> to disable that warning while still turning on -Wformat to do format
> checking.
Pass -std=c99 to it?
> $ gcc -x c -std=c99 -pedantic -Wall -Wextra -Werror -fsyntax-only - <<< $'#include <stdio.h>\n#include <stddef.h>\nvoid f() { printf("%zd", (size_t)42); }'
> $ gcc -x c -std=c89 -pedantic -Wall -Wextra -Werror -fsyntax-only - <<< $'#include <stdio.h>\n#include <stddef.h>\nvoid f() { printf("%zd", (size_t)42); }'
> <stdin>: In function ‘f’:
> <stdin>:3:1: error: ISO C90 does not support the ‘z’ gnu_printf length modifier [-Werror=format]
> cc1: all warnings being treated as errors