Commit 33575559 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaLibrary: Silence warning when building in release mode

parent 56079c5c
...@@ -822,6 +822,9 @@ bool MediaLibrary::onDevicePlugged( const std::string& uuid, const std::string& ...@@ -822,6 +822,9 @@ bool MediaLibrary::onDevicePlugged( const std::string& uuid, const std::string&
auto res = onDeviceChanged( *fsFactory, *currentDevice ); auto res = onDeviceChanged( *fsFactory, *currentDevice );
// Ensure the device actually changed. // Ensure the device actually changed.
assert( res == true ); assert( res == true );
#ifdef NDEBUG
(void)res; // Silence unused variable warning
#endif
break; break;
} }
} }
...@@ -843,6 +846,9 @@ void MediaLibrary::onDeviceUnplugged( const std::string& uuid ) ...@@ -843,6 +846,9 @@ void MediaLibrary::onDeviceUnplugged( const std::string& uuid )
{ {
auto res = onDeviceChanged( *fsFactory, *device ); auto res = onDeviceChanged( *fsFactory, *device );
assert( res == true ); assert( res == true );
#ifdef NDEBUG
(void)res; // Silence unused variable warning
#endif
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment