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:to:from:subject:date:message-id:references :mime-version:content-type; q=dns; s=default; b=L6GKmGxT2LAZDS0c xQPe/JU9C+O9yJ58SJoHDpCbZN3AgvTp5cXYjOnczC51Jnvo+DAbK8sjZUqCHaRX TMw8EVaJbqVTV+/TsSMdoKg8qBdn69g0Pvl7pKu4tzlxOHaOd5eIORm0bRWc/gH1 gm35pDi/vc7eYDiuN565NniDygY= 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:to:from:subject:date:message-id:references :mime-version:content-type; s=default; bh=u9bDv00rHq73U40ZIAl3YV FTIdo=; b=v+Bn/s1eoSoFHNcfNiCGv/Je5QZs6UAWnd8quVVezJ/3iKaLJnsIZ4 DfBbstqbtFfzFYVdiZvMmFTqC6ZXREy2r2UyomB0a7P3kzZyv63HWQkL1LdXDNpj IFasiL0l09k+0fog91iWCSjsXyDEXt9XxivymIgnZN2J+KTvvnhw0= 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=-3.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=surely X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Andy Moreton Subject: Re: lint kills _Noreturn Date: Sun, 29 May 2016 17:56:17 +0100 Lines: 26 Message-ID: <86fut07qha.fsf@gmail.com> References: <6fef0097-c076-2691-c4f9-2af5a050a17e AT cornell DOT edu> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.94 (windows-nt) X-IsSubscribed: yes 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 Surely the real problem here is a program which is not a lint executable defining 'lint' ? AndyM -- 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