Opened 9 years ago
Closed 9 years ago
#9415 closed Bugs (fixed)
-Wunused-local-typedef with gcc 4.8.1
Reported by: | 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 , 9 years ago
Component: | None → concept_check |
---|---|
Owner: | set to |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Milestone: | To Be Determined → Boost 1.56.0 |
---|
Fixed by: https://github.com/boostorg/concept_check/commit/d2d56f6de842a90925c31bdf09f5e3c87b5cda8e
Fix will be in the next release.
comment:4 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I got the same warnings with gcc 4.8.2