From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78159 invoked by alias); 29 May 2016 16:56:49 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 78151 invoked by uid 89); 29 May 2016 16:56:48 -0000 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 Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 29 May 2016 16:56:31 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b740q-0004zC-FP for cygwin@cygwin.com; Sun, 29 May 2016 18:56:28 +0200 Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 May 2016 18:56:28 +0200 Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 May 2016 18:56:28 +0200 To: cygwin@cygwin.com From: Andy Moreton Subject: Re: lint kills _Noreturn Date: Sun, 29 May 2016 19:28:00 -0000 Message-ID: <86fut07qha.fsf@gmail.com> References: <6fef0097-c076-2691-c4f9-2af5a050a17e@cornell.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 X-SW-Source: 2016-05/txt/msg00383.txt.bz2 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