Re: Fox a MinGW warning in libiberty/setenv.c

2013-03-13 Thread Ian Lance Taylor
On 3/13/13, Eli Zaretskii wrote: > > #ifdef __MSVCRT__ >extern _CRTIMP char *** __cdecl __MINGW_NOTHROW __p__environ(void); >extern _CRTIMP wchar_t *** __cdecl __MINGW_NOTHROW > __p__wenviron(void); > # define _environ (*__p__environ()) > # define _wenviron (*__p__we

Fox a MinGW warning in libiberty/setenv.c

2013-03-13 Thread Eli Zaretskii
I get this compiling the latest pretest of GDB 7.6 with MinGW: gcc -c -DHAVE_CONFIG_H -O2 -gdwarf-2 -g3 -D__USE_MINGW_ACCESS -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./setenv.c -o setenv.o ./setenv.c:66:1: warning: function declaration i