Date: Sat, 26 Jan 2008 18:33:57 -0500 (EST) From: "Mikhail T." <mi@aldan.algebra.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/120025: warning in C++'s system header Message-ID: <200801262333.m0QNXvXA091865@aldan.algebra.com> Resent-Message-ID: <200801262340.m0QNe4DC035539@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 120025
>Category: bin
>Synopsis: warning in C++'s system header
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 26 23:40:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Mikhail T.
>Release: FreeBSD 8.0
>Organization:
Virtual Estates, Inc.
>Environment:
7.x or 8.x system, where gcc-4.2 is the system compiler
>Description:
The following bug prevents ANY C++ code from being built with WARNS set
to anything, because -Wsystem-headers is included even when WARNS=1 (see
share/mk/bsd.sys.mk):
In file included from /usr/include/c++/4.2/ios:50,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
...
/usr/include/c++/4.2/bits/basic_ios.h: In member function 'void std::basic_ios<_CharT, _Traits>::_M_setstate(std::_Ios_Iostate)':
/usr/include/c++/4.2/bits/basic_ios.h:156: warning: empty body in an if-statement
>How-To-Repeat:
One example would be to build /usr/ports/graphics/libfpx/
>Fix:
Explicitly set NO_WERROR, as is currently done in 7.x. This defeats the
main purpose of WARNS, however...
>Release-Note:
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801262333.m0QNXvXA091865>
