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: 2012-08-25 05:17:57


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

Comment (by Kohei Takahashi <flast@…>):

 I tried followings, and it works for me.
 {{{
 #include <boot/static_assert.hpp>

 int main()
 {
         BOOST_STATIC_ASSERT(true) __attribute__((unused));
 }
 }}}

 However, in some cases seems doesn't work and I think it's GCC defect.
 I'll try to narrow down the cause and report it to GCC bugzilla.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7242#comment:2>
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:10 UTC