Skip to content
Snippets Groups Projects
Commit 0ede850d authored by Janik Zikovsky's avatar Janik Zikovsky
Browse files

Refs #2897: Fix test build, warnings.

parent 2e06eb98
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ void ParameterReference::reset(IFitFunction* fun, size_t index)
CompositeFunction* cf = dynamic_cast<CompositeFunction*>(fun);
while (cf)
{
int iFun = cf->functionIndex(iLocal); // TODO squashing the warning breaks the code
int iFun = static_cast<int>(cf->functionIndex(iLocal)); // TODO squashing the warning breaks the code
fLocal = cf->getFunction(iFun);
iLocal = fLocal->parameterIndex(cf->parameterLocalName(iLocal));
cf = dynamic_cast<CompositeFunction*>(fLocal);
......
......@@ -51,12 +51,12 @@ public:
//checking the level - this should be set to debug in the config file
//therefore this should only return false for debug
TS_ASSERT(log1.is(Logger::PRIO_DEBUG) == false); //debug
TS_ASSERT(log1.is(Logger::PRIO_INFORMATION)); //information
TS_ASSERT(log1.is(Logger::PRIO_NOTICE)); //information
TS_ASSERT(log1.is(Logger::PRIO_WARNING)); //warning
TS_ASSERT(log1.is(Logger::PRIO_ERROR)); //error
TS_ASSERT(log1.is(Logger::PRIO_FATAL)); //fatal
TS_ASSERT(log1.is(Poco::Message::PRIO_DEBUG) == false); //debug
TS_ASSERT(log1.is(Poco::Message::PRIO_INFORMATION)); //information
TS_ASSERT(log1.is(Poco::Message::PRIO_NOTICE)); //information
TS_ASSERT(log1.is(Poco::Message::PRIO_WARNING)); //warning
TS_ASSERT(log1.is(Poco::Message::PRIO_ERROR)); //error
TS_ASSERT(log1.is(Poco::Message::PRIO_FATAL)); //fatal
}
void testEnabled()
......
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