Skip to content

Commit f399391

Browse files
committed
Fix unused local typedef warnings for GCC
1 parent 5233f45 commit f399391

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/boost/python/cast.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace detail
7070
template <class T>
7171
inline void assert_castable(boost::type<T>* = 0)
7272
{
73-
typedef char must_be_a_complete_type[sizeof(T)];
73+
typedef char must_be_a_complete_type[sizeof(T)] BOOST_ATTRIBUTE_UNUSED;
7474
}
7575

7676
template <class Source, class Target>

include/boost/python/make_function.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace detail
5555

5656
typedef typename detail::error::more_keywords_than_function_arguments<
5757
NumKeywords::value, arity
58-
>::too_many_keywords assertion;
58+
>::too_many_keywords assertion BOOST_ATTRIBUTE_UNUSED;
5959

6060
return objects::function_object(
6161
detail::caller<F,CallPolicies,Sig>(f, p)

include/boost/python/object/pickle_support.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ namespace detail {
107107
{
108108
typedef typename
109109
error_messages::missing_pickle_suite_function_or_incorrect_signature<
110-
Class_>::error_type error_type;
110+
Class_>::error_type error_type BOOST_ATTRIBUTE_UNUSED;
111111
}
112112
};
113113

0 commit comments

Comments
 (0)