[geos-commits] [SCM] GEOS branch master updated. 2cd5f5be1685ee46f444308fa63b41becf967b16

git at osgeo.org git at osgeo.org
Mon Aug 26 07:02:38 PDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  2cd5f5be1685ee46f444308fa63b41becf967b16 (commit)
      from  7834f3237e6baf80350e9a3097b25d25f2a7dc9e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2cd5f5be1685ee46f444308fa63b41becf967b16
Author: Daniel Baston <dbaston at gmail.com>
Date:   Sat Aug 24 21:51:27 2019 -0400

    Attempt to quiet TUT warnings in both MSVC, gcc
    
    Fixes #904

diff --git a/tests/unit/tut/tut.hpp b/tests/unit/tut/tut.hpp
index 08797ea..059dff7 100644
--- a/tests/unit/tut/tut.hpp
+++ b/tests/unit/tut/tut.hpp
@@ -33,6 +33,10 @@
 namespace tut
 {
 
+template<class T>
+void
+ignore_unused_variable_warning(T const &) {}
+
 template <class, int>
 class test_group;
 
@@ -235,9 +239,8 @@ class test_group : public group_base, public test_group_posix
                         " an SEH exception");
                 }
 #else
-                bool d;
-                d = delete_obj(); // on separate line from declaration to
-                                  // avoid MVSC warning
+                bool d = delete_obj();
+                ignore_unused_variable_warning(d);
                 assert(d && "delete failed with SEH disabled: runtime bug?");
 #endif
             }

-----------------------------------------------------------------------

Summary of changes:
 tests/unit/tut/tut.hpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list