diff --git a/src/filesystem.cpp b/src/filesystem.cpp index 77f56e8..1c746ae 100644 --- a/src/filesystem.cpp +++ b/src/filesystem.cpp @@ -189,7 +189,7 @@ namespace fc { return *r._p != *l._p; } - + bool exists( const path& p ) { return boost::filesystem::exists(p); } void create_directories( const path& p ) { try { @@ -232,7 +232,7 @@ namespace fc { void rename( const path& f, const path& t ) { try { boost::filesystem::rename( boost::filesystem::path(f), boost::filesystem::path(t) ); - } catch ( boost::system::system_error& e ) { + } catch ( boost::system::system_error& ) { try{ boost::filesystem::copy( boost::filesystem::path(f), boost::filesystem::path(t) ); boost::filesystem::remove( boost::filesystem::path(f)); diff --git a/src/network/ntp.cpp b/src/network/ntp.cpp index 38d000a..2fec26b 100644 --- a/src/network/ntp.cpp +++ b/src/network/ntp.cpp @@ -110,7 +110,7 @@ namespace fc my->_request_loop.wait(); my->_read_loop.wait(); } - catch ( const fc::exception& e ) + catch ( const fc::exception& ) { // we exepect canceled exceptions, but cannot throw // from destructor