[geos-commits] r3498 - trunk/tests/unit/tut

svn_geos at osgeo.org svn_geos at osgeo.org
Tue Oct 4 20:09:10 EDT 2011


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);
 }



More information about the geos-commits mailing list