diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-25 11:43:15 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:16:10 +0200 |
commit | 81b3c9cfbdd99740320bfaf54eaf3929772f5eee (patch) | |
tree | 910a85f1f6d186cdabf1ae1bf8885771200074e9 /sibs/SafeSerializer.hpp | |
parent | e792431b0aa754c50d2edbc8f48e682e359b562c (diff) |
Remove unused code
Diffstat (limited to 'sibs/SafeSerializer.hpp')
-rw-r--r-- | sibs/SafeSerializer.hpp | 1 |
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)); |