Re: Complier warnings on mingw gcc 4.5.0 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Complier warnings on mingw gcc 4.5.0
Date
Msg-id 11749.1292448386@sss.pgh.pa.us
Whole thread Raw
In response to Re: Complier warnings on mingw gcc 4.5.0  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Complier warnings on mingw gcc 4.5.0  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> On my Fedora box, man 3 getopt says this:

>     A program that scans multiple argument vectors, or rescans the same
>     vector more than once, and wants to make use of GNU extensions such
>     as '+'  and '-'  at  the start of optstring, or changes the value of
>     POSIXLY_CORRECT between scans, must reinitialize getopt() by
>     resetting optind to 0, rather than the traditional value of 1. 
>     (Resetting to 0 forces the invocation of an internal initialization
>     routine that rechecks POSIXLY_CORRECT and checks for GNU extensions
>     in optstring.)

Hmm, mine says the same, but it's not entirely clear how to parse the
AND and OR conditions there.  The fact that it works on Fedora suggests
to me that the "multiple vectors" case is somehow ANDed with one of the
other conditions.  Anyway seems like the next step is to compare the
Fedora getopt code with mingw's ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Complier warnings on mingw gcc 4.5.0
Next
From: Robert Haas
Date:
Subject: Re: mvcc & DML on the same row