This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: lint kills _Noreturn
- From: Andy Moreton <andrewjmoreton at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 29 May 2016 17:56:17 +0100
- Subject: Re: lint kills _Noreturn
- Authentication-results: sourceware.org; auth=none
- References: <6fef0097-c076-2691-c4f9-2af5a050a17e at cornell dot edu>
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 <sys/cdefs.h>
> _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