Fixed minor clang warnings
authorkhizmax <libcds.dev@gmail.com>
Wed, 28 Sep 2016 20:15:31 +0000 (23:15 +0300)
committerkhizmax <libcds.dev@gmail.com>
Wed, 28 Sep 2016 20:15:31 +0000 (23:15 +0300)
test/stress/set/set_type_ellen_bintree.h
test/unit/tree/intrusive_ellenbintree_dhp.cpp
test/unit/tree/intrusive_ellenbintree_hp.cpp

index 54afe0b2918dd3b0d80f432e4fdf9b618b967d0a..0d08e2d6eaeb2fb09497b81ec69e6fac7c2e623e 100644 (file)
@@ -5,7 +5,7 @@
 
     Source code repo: http://github.com/khizmax/libcds/
     Download: http://sourceforge.net/projects/libcds/files/
-    
+
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions are met:
 
@@ -25,7 +25,7 @@
     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.     
+    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
 #ifndef CDSUNIT_SET_TYPE_ELLEN_BINTREE_H
@@ -296,7 +296,7 @@ namespace set {
     template <typename GC, typename Key, typename T, typename Traits>
     static inline void additional_check( EllenBinTreeSet<GC, Key, T, Traits>& s )
     {
-        typedef EllenBinTreeSet<GC, Key, T, Traits> set_type;
+        //typedef EllenBinTreeSet<GC, Key, T, Traits> set_type;
         GC::force_dispose();
         ellen_bintree_check::check_stat( s.statistics());
 /*
index 34f5416297f3f8fb117254d3ba85f06d4273d844..727c6fcfc779b5056de03d4ec598ee04a594068a 100644 (file)
@@ -5,7 +5,7 @@
 
     Source code repo: http://github.com/khizmax/libcds/
     Download: http://sourceforge.net/projects/libcds/files/
-    
+
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions are met:
 
@@ -25,7 +25,7 @@
     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.     
+    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
 #include "test_intrusive_tree_hp.h"
@@ -50,10 +50,6 @@ namespace {
 
         void SetUp()
         {
-            struct list_traits : public ci::ellen_bintree::traits
-            {
-                typedef ci::ellen_bintree::base_hook< ci::opt::gc<gc_type>> hook;
-            };
             typedef ci::EllenBinTree< gc_type, key_type, base_item_type > tree_type;
 
             cds::gc::dhp::GarbageCollector::Construct( 16, tree_type::c_nHazardPtrCount );
index 8674c61876177239298a07f4d28d30dd7838aac9..a4bd7d568ebac4c3e25dd0007891ea676864ccea 100644 (file)
@@ -5,7 +5,7 @@
 
     Source code repo: http://github.com/khizmax/libcds/
     Download: http://sourceforge.net/projects/libcds/files/
-    
+
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions are met:
 
@@ -25,7 +25,7 @@
     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.     
+    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
 #include "test_intrusive_tree_hp.h"
@@ -50,10 +50,6 @@ namespace {
 
         void SetUp()
         {
-            struct tree_traits : public ci::ellen_bintree::traits
-            {
-                typedef ci::ellen_bintree::base_hook< ci::opt::gc<gc_type>> hook;
-            };
             typedef ci::EllenBinTree< gc_type, key_type, base_item_type > tree_type;
 
             // +1 - for guarded_ptr