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; }