Clear [-Wunused-parameter] warnings (Roger Leigh)

This commit is contained in:
Beman
2014-08-29 08:12:16 -04:00
parent 2ebb04e1df
commit 4c58fc2efa

View File

@@ -384,24 +384,22 @@ namespace endian
inline void reverse(Value& x) BOOST_NOEXCEPT {x = reverse_value(x);} inline void reverse(Value& x) BOOST_NOEXCEPT {x = reverse_value(x);}
// reverse unless native endianness is big // reverse unless native endianness is big
template <class Reversible> // Effects: none if native endian order is big, otherwise reverse(x)
inline void big_endian(Reversible& x) BOOST_NOEXCEPT template <class Reversible>
// Effects: none if native endian order is big, otherwise reverse(x) # ifdef BOOST_BIG_ENDIAN
{ inline void big_endian(Reversible&) BOOST_NOEXCEPT {}
# ifndef BOOST_BIG_ENDIAN # else
reverse(x); inline void big_endian(Reversible& x) BOOST_NOEXCEPT {reverse(x);}
# endif # endif
}
// reverse bytes unless native endianness is little // reverse bytes unless native endianness is little
// Effects: none if native endian order is little, otherwise reverse(x)
template <class Reversible> template <class Reversible>
inline void little_endian(Reversible& x) BOOST_NOEXCEPT # ifdef BOOST_LITTLE_ENDIAN
// Effects: none if native endian order is little, otherwise reverse(x) inline void little_endian(Reversible&) BOOST_NOEXCEPT {}
{ # else
# ifndef BOOST_LITTLE_ENDIAN inline void little_endian(Reversible& x) BOOST_NOEXCEPT {reverse(x);}
reverse(x);
# endif # endif
}
namespace detail namespace detail
{ {