aboutsummaryrefslogtreecommitdiff
path: root/sibs/SafeSerializer.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-25 11:43:15 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:16:10 +0200
commit81b3c9cfbdd99740320bfaf54eaf3929772f5eee (patch)
tree910a85f1f6d186cdabf1ae1bf8885771200074e9 /sibs/SafeSerializer.hpp
parente792431b0aa754c50d2edbc8f48e682e359b562c (diff)
Remove unused code
Diffstat (limited to 'sibs/SafeSerializer.hpp')
-rw-r--r--sibs/SafeSerializer.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sibs/SafeSerializer.hpp b/sibs/SafeSerializer.hpp
index 68b6e7c..95e7807 100644
--- a/sibs/SafeSerializer.hpp
+++ b/sibs/SafeSerializer.hpp
@@ -25,6 +25,7 @@ namespace sibs
void add(const T &data)
{
usize offset = buffer.size();
+ (void)offset;
buffer.insert(buffer.end(), (unsigned char*)&data, (unsigned char*)&data + sizeof(T));
#if BYTE_ORDER == BIG_ENDIAN
std::reverse((char*)&buffer[offset], (char*)&buffer[offset] + sizeof(T));