aboutsummaryrefslogtreecommitdiff
path: root/sibs/SafeSerializer.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-25 11:43:15 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-10-25 11:43:20 +0200
commitfa94483682bd8bc996d633f38bf3a1018b48ab87 (patch)
treef4528fdc1a64457aa1cf470efdc4cece526470e3 /sibs/SafeSerializer.hpp
parent7947431ec1e837b2149e94b81e505fe4516ee5c6 (diff)
Remove unused code2.0.1
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));