From 9d2097cdea54d50b57d8a0741122571b786b327a Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Thu, 18 Dec 2014 13:16:12 +0300 Subject: [PATCH] Silence warning on Release build --- SDL2pp/RWops.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/SDL2pp/RWops.cc b/SDL2pp/RWops.cc index 108fd6e..0763fc1 100644 --- a/SDL2pp/RWops.cc +++ b/SDL2pp/RWops.cc @@ -192,6 +192,7 @@ Sint64 RWops::Size() { Sint64 old_pos = Tell(); Sint64 size = Seek(0, SEEK_END); Sint64 back_pos = Seek(old_pos, SEEK_SET); + (void)back_pos; // silence unused variable warning on release build assert(back_pos == old_pos); return size; }