Opened 9 years ago

Closed 9 years ago

#9415 closed Bugs (fixed)

-Wunused-local-typedef with gcc 4.8.1

Reported by: lpasquale@… Owned by: jsiek
Milestone: Boost 1.56.0 Component: concept_check
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

I get a lot of warnings like

/install-dir/boost/include/boost/concept_check.hpp: In function ‘void boost::function_requires(Model*)’:
/install-dir/boost/include/boost/concept/detail/general.hpp:71:20: warning: typedef ‘boost_concept_check45’ locally defined but not used [-Wunused-local-typedefs]
       BOOST_PP_CAT(boost_concept_check,__LINE__)
                    ^
/install-dir/boost/include/boost/preprocessor/cat.hpp:29:34: note: in definition of macro ‘BOOST_PP_CAT_I’
 #    define BOOST_PP_CAT_I(a, b) a ## b
                                  ^
/install-dir/boost/include/boost/concept/detail/general.hpp:71:7: note: in expansion of macro ‘BOOST_PP_CAT’
       BOOST_PP_CAT(boost_concept_check,__LINE__)
       ^
/install-dir/boost/include/boost/concept/assert.hpp:44:5: note: in expansion of macro ‘BOOST_CONCEPT_ASSERT_FN’
     BOOST_CONCEPT_ASSERT_FN(void(*)ModelInParens)
     ^
/install-dir/boost/include/boost/concept_check.hpp:45:7: note: in expansion of macro ‘BOOST_CONCEPT_ASSERT’
       BOOST_CONCEPT_ASSERT((Model));
       ^

generated by different functions, but reletaed to the same macros.

Change History (4)

comment:1 by viboes, 9 years ago

Component: Noneconcept_check
Owner: set to jsiek

comment:2 by Heungson Lee, 9 years ago

I got the same warnings with gcc 4.8.2

comment:3 by acharles <acharles@…>, 9 years ago

Milestone: To Be DeterminedBoost 1.56.0

comment:4 by Daniel James, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.