From owner-cvs-all@FreeBSD.ORG Sat Jan 26 23:43:37 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43AD016A417; Sat, 26 Jan 2008 23:43:37 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3873F13C448; Sat, 26 Jan 2008 23:43:37 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0QNhbFb075791; Sat, 26 Jan 2008 23:43:37 GMT (envelope-from mi@repoman.freebsd.org) Received: (from mi@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0QNhbTM075790; Sat, 26 Jan 2008 23:43:37 GMT (envelope-from mi) Message-Id: <200801262343.m0QNhbTM075790@repoman.freebsd.org> From: Mikhail Teterin Date: Sat, 26 Jan 2008 23:43:36 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/graphics/libfpx/files Makefile.bsd X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 23:43:37 -0000 mi 2008-01-26 23:43:36 UTC FreeBSD ports repository Modified files: graphics/libfpx/files Makefile.bsd Log: When WARNS is set in a Makefile even to 1, the flag ``-Wsystem-headers'' is added to the list of compiler's warning-flags. This triggers a warning like: /usr/include/c++/4.2/bits/basic_ios.h:156: warning: empty body in an if-statement in g++42. When this compiler is used, where NO_WERROR is set, the port fails to build, as warnings are treated as errors. This, pretty much, means, that NO C++ code can currently be compiled with WARNS set to anything on FreeBSD. Work-around the deficiency for now by removing the ``-Wsystem-headers'' from CXXFLAGS after including bsd.lib.mk. This fixes graphics/libfpx on 8.x as well as allows the port to be built by gcc-4.2 on 6.x and 5.x. Continuously reminded of by: pav Revision Changes Path 1.17 +4 -0 ports/graphics/libfpx/files/Makefile.bsd