tests: Fixed warning

git-svn-id: http://pugixml.googlecode.com/svn/trunk@612 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-07-22 05:17:54 +00:00
parent 2ac60c851e
commit 0363bccfc9

View File

@ -114,7 +114,9 @@ TEST(document_load_stream_exceptions)
try
{
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&)
{