From 609f5a746efc8bd04e351f8ed3b1a8c4d210818b Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Wed, 1 Jul 2015 11:16:25 -0400 Subject: [PATCH] Quiet harmless compiler warnings --- libraries/chain/asset.cpp | 2 +- libraries/db/include/graphene/db/index.hpp | 2 +- libraries/net/include/graphene/net/node.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/chain/asset.cpp b/libraries/chain/asset.cpp index 36963571..c03cd11d 100644 --- a/libraries/chain/asset.cpp +++ b/libraries/chain/asset.cpp @@ -90,7 +90,7 @@ namespace graphene { namespace chain { FC_ASSERT( result <= GRAPHENE_MAX_SHARE_SUPPLY ); return asset( result.to_uint64(), b.base.asset_id ); } - FC_ASSERT( !"invalid asset * price", "", ("asset",a)("price",b) ); + FC_THROW_EXCEPTION( fc::assert_exception, "invalid asset * price", ("asset",a)("price",b) ); } price operator / ( const asset& base, const asset& quote ) diff --git a/libraries/db/include/graphene/db/index.hpp b/libraries/db/include/graphene/db/index.hpp index 89e8aafe..a6dd2dde 100644 --- a/libraries/db/include/graphene/db/index.hpp +++ b/libraries/db/include/graphene/db/index.hpp @@ -169,7 +169,7 @@ namespace graphene { namespace db { const T* result = dynamic_cast(item.get()); if( result != nullptr ) return *result; } - FC_ASSERT( !"invalid index type" ); + FC_THROW_EXCEPTION( fc::assert_exception, "invalid index type" ); } protected: diff --git a/libraries/net/include/graphene/net/node.hpp b/libraries/net/include/graphene/net/node.hpp index 34950843..7dfbe190 100644 --- a/libraries/net/include/graphene/net/node.hpp +++ b/libraries/net/include/graphene/net/node.hpp @@ -83,7 +83,7 @@ namespace graphene { namespace net { case trx_message_type: return handle_transaction(message_to_process.as(), sync_mode); default: - FC_ASSERT( !"Invalid Message Type" ); + FC_THROW( "Invalid Message Type" ); }; }