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: C declarations Date: Wed, 01 Feb 2017 10:44:00 -0800 Organization: None to speak of Lines: 19 Message-ID: References: <3fd6c360-cd60-4d22-b7c6-4ac75ab206c3@googlegroups.com> <910e144a-fbc1-43e6-a2d2-59aa44aebb72@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="d1c2f4f3e96755a2d9129a8b0bf9863b"; logging-data="2657"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1857+OKCVVwE98sVG1syfqU" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:e6iUVu70M6LeRqEDBBtJKRbrFbM= sha1:gatHi+wL6lPEFsKKrd3naGQX/5g= Xref: csiph.com comp.lang.c:102917 BartC writes: [...] > It doesn't help that so many compilers are happy to ignore what the spec > says, and just give a warning. [...] The standard only says that a violation of any syntax rule or constraint results in a diagnostic. That diagnostic can be a non-fatal warning. Many compilers provide options to provide more stringent checking, such as gcc's "-std=c11 -pedantic-errors". (There's also no requirement that the diagnostic must be clear; that's a QoI issue.) -- 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"