From f28e472f5967df0213641765d7f601071e3a4117 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Mon, 19 Dec 2011 15:34:11 +0100 Subject: [PATCH] Throw a warning even is NDEBUG is defined --- simgear/props/propertyObject_test.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5