tests: Fixed warning
git-svn-id: http://pugixml.googlecode.com/svn/trunk@612 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
2ac60c851e
commit
0363bccfc9
@ -114,7 +114,9 @@ TEST(document_load_stream_exceptions)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
doc.load(iss);
|
doc.load(iss);
|
||||||
CHECK((bool)!"exception should be thrown");
|
|
||||||
|
volatile bool exception_should_be_thrown = false; // to avoid 'controlling expression is constant' warning
|
||||||
|
CHECK(exception_should_be_thrown);
|
||||||
}
|
}
|
||||||
catch (const std::ios_base::failure&)
|
catch (const std::ios_base::failure&)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user