Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation errors in clang 17 #117

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/bitsery/adapter/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>(newOffset);
assert(newOffset <= _bufferSize);
}

Expand Down
6 changes: 0 additions & 6 deletions include/bitsery/bitsery.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion include/bitsery/ext/growable.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define BITSERY_EXT_GROWABLE_H

#include "../traits/core/traits.h"
#include <cstdint>
#include <stdint.h>

namespace bitsery {

Expand Down
2 changes: 1 addition & 1 deletion include/bitsery/ext/std_bitset.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "../traits/core/traits.h"
#include <bitset>
#include <cstdint>
#include <stdint.h>

namespace bitsery {
namespace ext {
Expand Down
Loading