From 0363bccfc910389e777fd62f126fe60d21a47fbb Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 22 Jul 2010 05:17:54 +0000 Subject: tests: Fixed warning git-svn-id: http://pugixml.googlecode.com/svn/trunk@612 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_document.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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&) { -- cgit v1.2.3