popen and pclose redefinitions causing many warning in Windows build - Mailing list pgsql-hackers

From Michael Paquier
Subject popen and pclose redefinitions causing many warning in Windows build
Date
Msg-id CAB7nPqQLKBPUJx6AwqB8bfNScuMGPXjo=VcZB2v-nDoyth0W2Q@mail.gmail.com
Whole thread Raw
Responses Re: popen and pclose redefinitions causing many warning in Windows build  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
Hi all,

Since commit a692ee5, code compilation on windows is full of warnings
caused by the re-definitions of popen and pclose:
In file included from ../../../src/include/c.h:1028:0,
                 from ../../../src/include/postgres.h:47,
                 from analyze.c:25:
../../../src/include/port.h:312:0: warning: "popen" redefined [enabled
by default]
In file included from ../../../src/include/c.h:81:0,
                 from ../../../src/include/postgres.h:47,
                 from analyze.c:25:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/include/stdio.h:48
9:0: note: this is the location of the previous definition
In file included from ../../../src/include/c.h:1028:0,
                 from ../../../src/include/postgres.h:47,
                 from analyze.c:25:
../../../src/include/port.h:313:0: warning: "pclose" redefined
[enabled by default]
In file included from ../../../src/include/c.h:81:0,
                 from ../../../src/include/postgres.h:47,
                 from analyze.c:25
The patch attached fixes that.
Regards,
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: PGDLLEXPORTing all GUCs?
Next
From: Michael Paquier
Date:
Subject: Compilation errors with mingw build caused by undefined optreset