Project

General

Profile

Actions

Bug #2657

closed

Disable -Wunused-local-typedef

Added by Davide Pesavento about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

clang-3.6 introduces a new warning for unused local typedefs, which is enabled by -Wall and causes a build failure in debug mode (due to -Werror).

../tests/unit-tests/encoding/block.t.cpp:305:3: error: unused typedef 'boost_concept_check305' [-Werror,-Wunused-local-typedef]
  BOOST_CONCEPT_ASSERT((boost::EqualityComparable<Block>));
  ^
/usr/include/boost/concept/assert.hpp:43:5: note: expanded from macro 'BOOST_CONCEPT_ASSERT'
    BOOST_CONCEPT_ASSERT_FN(void(*)ModelInParens)
    ^
/usr/include/boost/concept/detail/general.hpp:79:7: note: expanded from macro 'BOOST_CONCEPT_ASSERT_FN'
      BOOST_PP_CAT(boost_concept_check,__LINE__)             \
      ^
/usr/include/boost/preprocessor/cat.hpp:22:32: note: expanded from macro 'BOOST_PP_CAT'
#    define BOOST_PP_CAT(a, b) BOOST_PP_CAT_I(a, b)
                               ^
/usr/include/boost/preprocessor/cat.hpp:29:34: note: expanded from macro 'BOOST_PP_CAT_I'
#    define BOOST_PP_CAT_I(a, b) a ## b
                                 ^
<scratch space>:90:1: note: expanded from here
boost_concept_check305
^
1 error generated.

../tests/unit-tests/util/test-in-memory-storage-common.cpp:298:3: error: unused typedef 'boost_concept_check298' [-Werror,-Wunused-local-typedef]
  BOOST_CONCEPT_ASSERT((boost::InputIterator<InMemoryStorage::const_iterator>));
  ^
/usr/include/boost/concept/assert.hpp:43:5: note: expanded from macro 'BOOST_CONCEPT_ASSERT'
    BOOST_CONCEPT_ASSERT_FN(void(*)ModelInParens)
    ^
/usr/include/boost/concept/detail/general.hpp:79:7: note: expanded from macro 'BOOST_CONCEPT_ASSERT_FN'
      BOOST_PP_CAT(boost_concept_check,__LINE__)             \
      ^
/usr/include/boost/preprocessor/cat.hpp:22:32: note: expanded from macro 'BOOST_PP_CAT'
#    define BOOST_PP_CAT(a, b) BOOST_PP_CAT_I(a, b)
                               ^
/usr/include/boost/preprocessor/cat.hpp:29:34: note: expanded from macro 'BOOST_PP_CAT_I'
#    define BOOST_PP_CAT_I(a, b) a ## b
                                 ^
<scratch space>:117:1: note: expanded from here
boost_concept_check298
^
1 error generated.

Nothing we can do since it's in boost. Therefore I propose to disable the warning (-Wno-unused-local-typedef) or make it non-fatal (-Wno-error=unused-local-typedef).

Actions #1

Updated by Alex Afanasyev almost 9 years ago

  • Status changed from New to Closed
  • Assignee set to Alex Afanasyev
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF