decoder/ffmpeg, test/test_protocol: catch exceptions by reference
Work around -Werror=catch-value.
This commit is contained in:
@@ -37,7 +37,7 @@ ArgParserTest::TestRange()
|
||||
try {
|
||||
range = ParseCommandArgRange("-2");
|
||||
CPPUNIT_ASSERT(false);
|
||||
} catch (ProtocolError) {
|
||||
} catch (const ProtocolError &) {
|
||||
CPPUNIT_ASSERT(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user