diff --git a/include/bitsery/adapter/buffer.h b/include/bitsery/adapter/buffer.h index 47a8678..1e05b23 100644 --- a/include/bitsery/adapter/buffer.h +++ b/include/bitsery/adapter/buffer.h @@ -276,8 +276,9 @@ class OutputBufferAdapter } } - void maybeResize(BITSERY_MAYBE_UNUSED size_t newOffset, std::false_type) + void maybeResize(size_t newOffset, std::false_type) { + static_cast(newOffset); assert(newOffset <= _bufferSize); } diff --git a/include/bitsery/bitsery.h b/include/bitsery/bitsery.h index 378b3ea..b5dee9d 100644 --- a/include/bitsery/bitsery.h +++ b/include/bitsery/bitsery.h @@ -77,12 +77,6 @@ #define BITSERY_UNLIKELY #endif -#if __has_cpp_attribute(maybe_unused) -#define BITSERY_MAYBE_UNUSED BITSERY_ATTRIBUTE(maybe_unused) -#else -#define BITSERY_MAYBE_UNUSED -#endif - #if __GNUC__ #define BITSERY_NOINLINE __attribute__((noinline)) #elif defined(_MSC_VER) diff --git a/include/bitsery/ext/growable.h b/include/bitsery/ext/growable.h index f6458c2..6ad948c 100644 --- a/include/bitsery/ext/growable.h +++ b/include/bitsery/ext/growable.h @@ -24,7 +24,7 @@ #define BITSERY_EXT_GROWABLE_H #include "../traits/core/traits.h" -#include +#include namespace bitsery { diff --git a/include/bitsery/ext/std_bitset.h b/include/bitsery/ext/std_bitset.h index f34a883..f709147 100644 --- a/include/bitsery/ext/std_bitset.h +++ b/include/bitsery/ext/std_bitset.h @@ -25,7 +25,7 @@ #include "../traits/core/traits.h" #include -#include +#include namespace bitsery { namespace ext {