From: Erik Hofman Date: Mon, 19 Dec 2011 14:34:11 +0000 (+0100) Subject: Throw a warning even is NDEBUG is defined X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f28e472f5967df0213641765d7f601071e3a4117;p=simgear.git Throw a warning even is NDEBUG is defined --- diff --git a/simgear/props/propertyObject_test.cxx b/simgear/props/propertyObject_test.cxx index b07bb483..61a050c0 100644 --- a/simgear/props/propertyObject_test.cxx +++ b/simgear/props/propertyObject_test.cxx @@ -43,9 +43,11 @@ bool testBasic() double ff(aFoo); assert(ff == 12.0); // comparison with literal + if (ff != 12.0) cout << "Error: a/foo != 12!" << endl; const float fff(12.0f); assert(fff == aFoo); // comparion with float value + if (fff != aFoo) cout << "Error: 12 != a/foo" << endl; return true; }