[prev in list] [next in list] [prev in thread] [next in thread]
List: geos-commits
Subject: [geos-commits] r3498 - trunk/tests/unit/tut
From: svn_geos () osgeo ! org
Date: 2011-10-05 0:09:10
Message-ID: 20111005000910.8AD3B39028D () trac ! osgeo ! org
[Download RAW message or body]
Author: hobu
Date: 2011-10-04 17:09:10 -0700 (Tue, 04 Oct 2011)
New Revision: 3498
Modified:
trunk/tests/unit/tut/tut_assert.hpp
Log:
declare these functions static inline to silence unused-function warning
Modified: trunk/tests/unit/tut/tut_assert.hpp
===================================================================
--- trunk/tests/unit/tut/tut_assert.hpp 2011-10-04 20:46:04 UTC (rev 3497)
+++ trunk/tests/unit/tut/tut_assert.hpp 2011-10-05 00:09:10 UTC (rev 3498)
@@ -38,7 +38,7 @@
* Tests provided condition.
* Throws if false.
*/
-void ensure(bool cond)
+static inline void ensure(bool cond)
{
if (!cond)
{
@@ -51,7 +51,7 @@
* Tests provided condition.
* Throws if true.
*/
-void ensure_not(bool cond)
+static inline void ensure_not(bool cond)
{
ensure(!cond);
}
@@ -182,7 +182,7 @@
/**
* Unconditionally fails with message.
*/
-void fail(const char* msg = "")
+static inline void fail(const char* msg = "")
{
throw failure(msg);
}
_______________________________________________
geos-commits mailing list
geos-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic