From fa94483682bd8bc996d633f38bf3a1018b48ab87 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 25 Oct 2018 11:43:15 +0200 Subject: Remove unused code --- sibs/SafeSerializer.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'sibs/SafeSerializer.hpp') 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)); -- cgit v1.2.3