Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Preprocessor Overheads Date: Fri, 03 Feb 2017 08:54:17 -0800 Organization: None to speak of Lines: 32 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="abc513047bd7eb6502f52aab060309cd"; logging-data="4431"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eiWswAHxlMOFSI+Z6uqV1" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:5M2+/ntHHC8WsaPbCOwE5f2cil4= sha1:6EyaSQO8XoWfISSsSsIdReSzzLs= Xref: csiph.com comp.lang.c:103047 Tim Rentsch writes: [...] > I wanted to follow up on this line. As you have seen different > people have different ideas about what warning options should be > used. IMO many people go overboard here, turning on every > warning under the sun. To me this seems counterproductive. For > what you are doing I think a good minimal base level is this set > (disclaimer: tested only with gcc 5.4.0): > > gcc -std=c11 -pedantic -Wno-format -Werror BartC seems to be using a particular version of gcc on Windows that incorrectly complains about a "%lld" format. "gcc --version" reports "gcc (tdm64-1) 5.1.0". tdm-gcc is "A compiler suite for 32- and 64-bit Windows based on the GNU toolchain". My unfounded speculation is that its maintainers hacked the gcc sources to complain about "%lld" at a time when the Microsoft C library didn't support it, and didn't back out the change when later versions of the C library added support. BartC, I suggest you submit a bug report via . Until it's fixed, I suggest using "-Wno-format* *only* for that compiler, as a workaround for a bug that seems to occur only in that implementation. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"