From 241f69c55e923c4ccde4816031eb02d03fed409d Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Mon, 16 Nov 2015 16:42:21 +0300 Subject: [PATCH] Fix gcc warnings about unused variables --- include/boost/system/error_code.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 78d52fe..e7466da 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -218,9 +218,9 @@ namespace boost inline const error_category & get_system_category() { return system_category(); } inline const error_category & get_generic_category() { return generic_category(); } inline const error_category & get_posix_category() { return generic_category(); } - static const error_category & posix_category = generic_category(); - static const error_category & errno_ecat = generic_category(); - static const error_category & native_ecat = system_category(); + static const error_category & posix_category BOOST_ATTRIBUTE_UNUSED = generic_category(); + static const error_category & errno_ecat BOOST_ATTRIBUTE_UNUSED = generic_category(); + static const error_category & native_ecat BOOST_ATTRIBUTE_UNUSED = system_category(); # endif // class error_condition -----------------------------------------------//