X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=LrUCwUL1GcBQysJv HqlRX2dBW4eP7SDhE4pLH5mw9kqQkecpU4ZntnkLX2ZXN3igIqoNJbAUSgPuL1we WA3wmd4jV3WihDmP/BVbuYPHyo3nRyBUt6hsbvEv5ng7YFLnBPUfMdi8oZAFKKjy GnntZs2BjYxCrhGtVg8lvHziDD0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=paAQkPf8XTPdQ7jbI2P0Va W3oeA=; b=dqgKLAHYVTIkm8wxqrcv1WKISWB30EzlEKPxa1fJiJflRA1lMxfv+c ESjFlvyROK38XvRE4PxBq//FQ/lppCSW0NAeL7YJ7BPb+x/vEC2373RIAii11uxP 507qZWeFvZzW1A8hBHizqdrMC02zjU0LKQgsJlpTjvdGnYe3ASy30= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: limerock01.mail.cornell.edu X-CornellRouted: This message has been Routed already. Subject: Re: lint kills _Noreturn To: cygwin AT cygwin DOT com References: <6fef0097-c076-2691-c4f9-2af5a050a17e AT cornell DOT edu> <86fut07qha DOT fsf AT gmail DOT com> <9c66686a-0af8-dbfe-7804-797df8aad7c6 AT cornell DOT edu> From: Ken Brown Message-ID: Date: Sun, 29 May 2016 13:25:33 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <9c66686a-0af8-dbfe-7804-797df8aad7c6@cornell.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-IsSubscribed: yes On 5/29/2016 1:21 PM, Ken Brown wrote: > On 5/29/2016 12:56 PM, Andy Moreton wrote: >> On Sun 29 May 2016, Ken Brown wrote: >> >>> If lint is defined, then /usr/include/sys/cdefs.h defines _Noreturn >>> as a macro >>> that expands to nothing. Is this intentional? >>> >>> Simple test case: >>> >>> $ cat test.h >>> #define lint 1 >>> #include >>> _Noreturn void foo (void); >>> >>> $ gcc -E test.h | grep foo >>> void foo (void); >>> >>> >>> Ken >> >> A traditional lint program may not support the new C11 keywords, but >> will define the 'lint' symbol. See, e.g. >> http://www.unix.com/man-page/FreeBSD/1/lint > > But in the present context (see my second message), we're redefining C11 > keywords even though __STDC_VERSION__ >= 201112L. > >> Surely the real problem here is a program which is not a lint executable >> defining 'lint' ? > > The program is emacs built from a git checkout of the master branch. By > default the configure option --enable-gcc-checking is used, and this I meant --enable-gcc-warnings. > causes lint to be defined in src/config.h. It doesn't seem to be a > problem on platforms other than Cygwin; or at least it hasn't been > reported. -- 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