Re: CVS HEAD is broken by flex - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CVS HEAD is broken by flex
Date
Msg-id 10971.1189569871@sss.pgh.pa.us
Whole thread Raw
In response to CVS HEAD is broken by flex  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> The suspect is flex (or yy template file). It defines "__unused" to
> be empty, but netdb.h uses "__unused" as a variable.

Egad.  Shouldn't there be villagers breaking down the flex hackers'
front door with torches and pitchforks in hand?  Why is it our problem
to fix their stupidity?

> [src/bin/psql/psqlscan.c]
>       9 #if defined(__FreeBSD__)
>      10 #include <sys/cdefs.h>
>      11 #else
> ->   12 #define __unused
>      13 #endif

Surely lines 11 and 12 should simply go away.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: invalidly encoded strings
Next
From: Tom Lane
Date:
Subject: Re: buildfarm failure after ICC configure change