mirror of
https://github.com/boostorg/endian.git
synced 2025-08-02 14:04:29 +02:00
Clear [-Wunused-parameter] warnings (Roger Leigh)
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user