Skip to content
Snippets Groups Projects
Commit 5115db74 authored by Arseny Kapoulkine's avatar Arseny Kapoulkine
Browse files

tests: Fix unused variable warning in some compilers

The variable is being assigned to but never read when exceptions are
disabled.
parent 8df9f97c
No related branches found
No related tags found
No related merge requests found
......@@ -190,13 +190,14 @@ int main(int, char** argv)
total++;
passed += run_test(test, test->_name, custom_allocate);
#ifndef PUGIXML_NO_EXCEPTIONS
if (g_memory_fail_triggered)
{
// run tests that trigger memory failures twice - with an allocator that returns NULL and with an allocator that throws
#ifndef PUGIXML_NO_EXCEPTIONS
total++;
passed += run_test(test, (test->_name + std::string(" (throw)")).c_str(), custom_allocate_throw);
#endif
}
#endif
}
unsigned int failed = total - passed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment