Re: Strange c++ compilation

2012-12-03 Thread rustyBSD
Le 01/12/2012 22:31, Philip Guenther a écrit : > Neither. The OpenBSD developers think that that's a useless** warning > and aren't interested in making the system header files that much > harder to read just to make it go away. > > What problem are you trying to solve by using -Wredundant-decls?

Re: Strange c++ compilation

2012-12-01 Thread Philip Guenther
On Sat, Dec 1, 2012 at 10:32 AM, rustyBSD wrote: ... > Icompile it with > >$ g++ -Wredundant-decls -o test test.cpp > > And I get > > In file included from > /usr/include/g++/amd64-unknown-openbsd5.2/bits/gthr-default.h:44, ... > /usr/include/unistd.h:333: warning: redundant redeclaration of

Strange c++ compilation

2012-12-01 Thread rustyBSD
Hi, I have the file test.cpp, containingonly: #include int main() { } Icompile it with $ g++ -Wredundant-decls -o test test.cpp And I get In file included from /usr/include/g++/amd64-unknown-openbsd5.2/bits/gthr-default.h:44, from /usr/include/g++/amd64-unknown