Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 2015 15:21:06 +0000 (UTC)
From:      Don Lewis <truckman@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r396575 - in head/devel/boost-libs: . files
Message-ID:  <201509101521.t8AFL66A048528@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: truckman
Date: Thu Sep 10 15:21:05 2015
New Revision: 396575
URL: https://svnweb.freebsd.org/changeset/ports/396575

Log:
  Squelch an extremely verbose unused typdef warning that is triggered
  when compiling code that uses the BOOST_STATIC_ASSERT() macro with
  recent versions of clang.  Upstream has a slightly different fix in
  their develop branch (removel of the __GNUC_MINOR__ check, which works
  because clang claims to be __GNUC__ == 4), but it has not been merged
  into the master branch.
  
  This change reduces the size of the OpenOffice build log by 66%.

Added:
  head/devel/boost-libs/files/patch-boost_static__assert.hpp   (contents, props changed)
Modified:
  head/devel/boost-libs/Makefile

Modified: head/devel/boost-libs/Makefile
==============================================================================
--- head/devel/boost-libs/Makefile	Thu Sep 10 15:02:33 2015	(r396574)
+++ head/devel/boost-libs/Makefile	Thu Sep 10 15:21:05 2015	(r396575)
@@ -4,7 +4,7 @@
 PORTNAME=	boost-libs
 COMMENT=	Free portable C++ libraries (without Boost.Python)
 
-PORTREVISION=	6
+PORTREVISION=	7
 
 BUILD_DEPENDS+=	bjam:${PORTSDIR}/devel/boost-jam
 

Added: head/devel/boost-libs/files/patch-boost_static__assert.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/boost-libs/files/patch-boost_static__assert.hpp	Thu Sep 10 15:21:05 2015	(r396575)
@@ -0,0 +1,11 @@
+--- boost/static_assert.hpp.orig	2013-09-21 20:17:00 UTC
++++ boost/static_assert.hpp
+@@ -67,7 +67,7 @@
+ //
+ // If the compiler warns about unused typedefs then enable this:
+ //
+-#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
++#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7))) || defined(__clang__)
+ #  define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE __attribute__((unused))
+ #else
+ #  define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509101521.t8AFL66A048528>