Re: [Boost-bugs] [Boost C++ Libraries] #7242: GCC 4.8 warns unused local typedef

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7242: GCC 4.8 warns unused local typedef
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-07-15 09:08:21


#7242: GCC 4.8 warns unused local typedef
----------------------------------------+---------------------------
  Reporter: Kohei Takahashi <flast@…> | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: static_assert
   Version: Boost Release Branch | Severity: Problem
Resolution: fixed | Keywords:
----------------------------------------+---------------------------

Comment (by anonymous):

 I see the same warning with clang-3.6.1.

 The GCC syntax:
 {{{
 __attribute__((unused))
 }}}
 is accepted by clang,
 [http://llvm.org/releases/3.4/tools/clang/docs/LanguageExtensions.html
 #non-standard-c-11-attributes at least since clang-3.4]. I suggest to
 adapt the following lines, of boost/static_assert.hpp so that clang>=3.4
 is also taken into account:
 {{{
 #!cpp
 #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) &&
 (__GNUC_MINOR__ >= 7)))
 # define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE __attribute__((unused))
 #else
 # define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE
 #endif
 }}}

 Should I open a new ticket?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7242#comment:7>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC