mirror of
https://github.com/fraillt/bitsery.git
synced 2026-06-08 00:03:54 +00:00
Fix compilation errors in clang 17
This commit is contained in:
committed by
Mindaugas Vinkelis
parent
94f7adaf6c
commit
cd73aca2f5
@@ -23,6 +23,7 @@
|
||||
#ifndef BITSERY_ADAPTER_BUFFER_H
|
||||
#define BITSERY_ADAPTER_BUFFER_H
|
||||
|
||||
#include "../bitsery.h"
|
||||
#include "../details/adapter_bit_packing.h"
|
||||
#include "../traits/core/traits.h"
|
||||
#include <algorithm>
|
||||
@@ -276,7 +277,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
void maybeResize(size_t newOffset, std::false_type)
|
||||
void maybeResize(BITSERY_MAYBE_UNUSED size_t newOffset, std::false_type)
|
||||
{
|
||||
assert(newOffset <= _bufferSize);
|
||||
}
|
||||
|
||||
@@ -36,6 +36,12 @@
|
||||
BITSERY_BUILD_VERSION_STR( \
|
||||
BITSERY_MAJOR_VERSION, BITSERY_MINOR_VERSION, BITSERY_PATCH_VERSION)
|
||||
|
||||
#if __cplusplus > 201402L
|
||||
#define BITSERY_MAYBE_UNUSED [[maybe_unused]]
|
||||
#else
|
||||
#define BITSERY_MAYBE_UNUSED
|
||||
#endif
|
||||
|
||||
#include "deserializer.h"
|
||||
#include "serializer.h"
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#define BITSERY_EXT_GROWABLE_H
|
||||
|
||||
#include "../traits/core/traits.h"
|
||||
#include <cstdint>
|
||||
|
||||
namespace bitsery {
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "../traits/core/traits.h"
|
||||
#include <bitset>
|
||||
#include <cstdint>
|
||||
|
||||
namespace bitsery {
|
||||
namespace ext {
|
||||
|
||||
Reference in New Issue
Block a user