From f399391be21547d3917df562fddddb4c14452e90 Mon Sep 17 00:00:00 2001
From: Thomas Trummer
Date: Sun, 1 May 2016 12:10:04 +0200
Subject: [PATCH] Fix unused local typedef warnings for GCC
---
include/boost/python/cast.hpp | 2 +-
include/boost/python/make_function.hpp | 2 +-
include/boost/python/object/pickle_support.hpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/boost/python/cast.hpp b/include/boost/python/cast.hpp
index 31c61dbf..bad7e282 100755
--- a/include/boost/python/cast.hpp
+++ b/include/boost/python/cast.hpp
@@ -70,7 +70,7 @@ namespace detail
template
inline void assert_castable(boost::type* = 0)
{
- typedef char must_be_a_complete_type[sizeof(T)];
+ typedef char must_be_a_complete_type[sizeof(T)] BOOST_ATTRIBUTE_UNUSED;
}
template
diff --git a/include/boost/python/make_function.hpp b/include/boost/python/make_function.hpp
index f2f2a9e5..7dd7c316 100644
--- a/include/boost/python/make_function.hpp
+++ b/include/boost/python/make_function.hpp
@@ -55,7 +55,7 @@ namespace detail
typedef typename detail::error::more_keywords_than_function_arguments<
NumKeywords::value, arity
- >::too_many_keywords assertion;
+ >::too_many_keywords assertion BOOST_ATTRIBUTE_UNUSED;
return objects::function_object(
detail::caller(f, p)
diff --git a/include/boost/python/object/pickle_support.hpp b/include/boost/python/object/pickle_support.hpp
index cbdbcbb9..aa96d655 100644
--- a/include/boost/python/object/pickle_support.hpp
+++ b/include/boost/python/object/pickle_support.hpp
@@ -107,7 +107,7 @@ namespace detail {
{
typedef typename
error_messages::missing_pickle_suite_function_or_incorrect_signature<
- Class_>::error_type error_type;
+ Class_>::error_type error_type BOOST_ATTRIBUTE_UNUSED;
}
};