Re: Cannot compile C++ programs with WARNS > 3 on 4.0_BETA2
Hubert Feyrer <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Mon, 22 Jan 2007, Jeremie Le Hen wrote: > % c++ -O2 -Wall -Wpointer-arith -Wno-sign-compare -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99 -Werror -Wabi -Wold-style-cast -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wno-deprecated -Wno-non-template-friend -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wsynth -c zthreadstub.cc ... > % cc1plus: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++ ... > The fix is trivial and the patch is following: [drop -std=gnu99 from CXXFLAGS] Why do you think it's better to make the system headers drop a wrongly used option? Personally, I'd say you shouldn't use that option, as the error/warning says. (other lists that may be relevant for are tech-toolchain@ and tech-userlevel@). - Hubert