diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-07-22 05:17:54 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-07-22 05:17:54 +0000 |
commit | 0363bccfc910389e777fd62f126fe60d21a47fbb (patch) | |
tree | 83bd441b46a139a64884bacc7cbd4974075eeccf /tests/test_document.cpp | |
parent | 2ac60c851e351fd69ea8aa8b58ef6953b1792a35 (diff) |
tests: Fixed warning
git-svn-id: http://pugixml.googlecode.com/svn/trunk@612 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_document.cpp')
-rw-r--r-- | tests/test_document.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_document.cpp b/tests/test_document.cpp index abc676e..35f3f7d 100644 --- a/tests/test_document.cpp +++ b/tests/test_document.cpp @@ -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&) { |