X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4AD5DEED.1060608@gmail.com> Date: Wed, 14 Oct 2009 15:23:41 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Dave Korn CC: cygwin AT cygwin DOT com Subject: Re: [warning: implicit declaration of function] if enable flag std=c99 References: <1962f7960910110923m65e71070oec8f5eec26da114a AT mail DOT gmail DOT com> <416096c60910110940s4ab76378o81a631dac4b5669a AT mail DOT gmail DOT com> <1962f7960910110945g4041b45bu5c8663a17cf0e07f AT mail DOT gmail DOT com> <416096c60910110958v4692ec82v2b4f845a8e63947b AT mail DOT gmail DOT com> <4AD21C3C DOT 6050403 AT gmail DOT com> In-Reply-To: <4AD21C3C.6050403@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Dave Korn wrote: > If you use --std=c99, that means you want *only* c99 functions, and have > specifically asked to be warned about non-ANSI functions. I don't > understand why Linux does things differently, it's probably technically > wrong but trying to be helpful, It's being POSIX compliant: the fseeko/ftello functions are denoted CX by the opengroup SUS: > [CX][Option Start] Extension to the ISO C standard [Option End] The > functionality described is an extension to the ISO C standard. Application > writers may make use of an extension as it is supported on all IEEE Std > 1003.1-2001-conforming systems. > > With each function or header from the ISO C standard, a statement to the > effect that ``any conflict is unintentional'' is included. That is intended > to refer to a direct conflict. IEEE Std 1003.1-2001 acts in part as a > profile of the ISO C standard, and it may choose to further constrain > behaviors allowed to vary by the ISO C standard. Such limitations are not > considered conflicts. > > Where additional semantics apply to a function or header, the material is > identified by use of the CX margin legend. So I think it makes sense to enable these for cygwin too. I'm whipping up a patch for newlib. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple