Skip to content

Commit

Permalink
Merge warning fixes from develop.
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljames committed Dec 8, 2013
2 parents 389bf0d + 168e60a commit d2d56f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion include/boost/concept/detail/general.hpp
Expand Up @@ -65,10 +65,19 @@ struct requirement_<void(*)(Model)>

# endif

// Version check from https://svn.boost.org/trac/boost/changeset/82886
// (boost/static_assert.hpp)
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
#define BOOST_CONCEPT_UNUSED_TYPEDEF __attribute__((unused))
#else
#define BOOST_CONCEPT_UNUSED_TYPEDEF /**/
#endif

# define BOOST_CONCEPT_ASSERT_FN( ModelFnPtr ) \
typedef ::boost::concepts::detail::instantiate< \
&::boost::concepts::requirement_<ModelFnPtr>::failed> \
BOOST_PP_CAT(boost_concept_check,__LINE__)
BOOST_PP_CAT(boost_concept_check,__LINE__) \
BOOST_CONCEPT_UNUSED_TYPEDEF

}}

Expand Down
2 changes: 1 addition & 1 deletion include/boost/concept_check.hpp
Expand Up @@ -878,7 +878,7 @@ namespace boost
typename BackInsertionSequence::const_reference
r = cc.back();
ignore_unused_variable_warning(r);
};
}
S c;
typename S::value_type t;
};
Expand Down

0 comments on commit d2d56f6

Please sign in to comment.