From 88e41b76e36cac820802fe8bbe358999941493ee Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Sun, 8 Jun 2014 10:45:32 -0400 Subject: [PATCH] fix warning in release builds --- include/fc/exception/exception.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fc/exception/exception.hpp b/include/fc/exception/exception.hpp index 64d343c..2d2cfc6 100644 --- a/include/fc/exception/exception.hpp +++ b/include/fc/exception/exception.hpp @@ -183,6 +183,7 @@ namespace fc static exception_builder builder; auto itr = _registered_exceptions.find( T::code_value ); assert( itr == _registered_exceptions.end() ); + (void)itr; // in release builds this hides warnings _registered_exceptions[T::code_value] = &builder; }