Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: function declaration without args no longer works Date: Tue, 05 May 2026 00:15:43 -0700 Organization: A noiseless patient Spider Lines: 24 Message-ID: <86zf2ewcm8.fsf@linuxsc.com> References: <10sl5na$5ov$1@reader1.panix.com> <10slehr$mho$1@reader1.panix.com> <10tasgg$7nu$1@reader1.panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Tue, 05 May 2026 07:15:44 +0000 (UTC) Injection-Info: dont-email.me; logging-data="257066"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+L53UIVumPAgzAm0VoxwGFddnMV7IOG0w="; posting-host="3e8439ee7a5eb7f921cc930c7b47e195" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:pEv3W/FMF2TRFxhGLvqXCbCZh7E= sha1:9KTtdYegnIIsfPZ6fpHcafVxuxE= sha256:tONnd32g3KNFYXtfi787tvsDv6w36ZaLedJCABOsnRg= sha1:lwN+js3jBJLcflrVGkP4j43pDVU= Xref: csiph.com comp.lang.c:398342 John Forkosh writes: > John Forkosh wrote: > >> Michael B?uerle wrote: >> >>> John Forkosh wrote: >>> >>> Have you tried "-std=c99" (or whatever standard >>> your code was written for)? >> >> Thanks, Michael. I've tried it now:) Indeed, as soon >> as I saw your "-std=" I vaguely recalled that switch. >> And, yeah, both -std=c99 and (as also suggested) >> -std=gnu17 ignore the problem, and compile just fine >> Thanks again. > > Update: While subsequently trying to compile some even older > code, written circa 1991, I had to go back even further, > to -std=c89 (or equivalently -ansi as per the man cc page). > And then, no errors, no warnings, not even with -pedantic. What were the sorts of things that caused diagnostics when compiled under -std=c99?