]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/flyweight/test/test_basic_template.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / flyweight / test / test_basic_template.hpp
index 191374471ff547659d343008d2e70a7b822dc6e5..61b462be419b4e7ddc7e429249ffb063b6e91bb3 100644 (file)
@@ -1,6 +1,6 @@
 /* Boost.Flyweight basic test template.
  *
- * Copyright 2006-2014 Joaquin M Lopez Munoz.
+ * Copyright 2006-2019 Joaquin M Lopez Munoz.
  * Distributed under the Boost Software License, Version 1.0.
  * (See accompanying file LICENSE_1_0.txt or copy at
  * http://www.boost.org/LICENSE_1_0.txt)
@@ -75,7 +75,7 @@ void test_basic_template(
     BOOST_TEST(f3==f2);
 #endif
 
-    f1=f1;
+    f1=((void)0,f1); /* self assignment warning */
     BOOST_TEST(f1==f1);
 
     c1=f2;
@@ -293,6 +293,7 @@ void test_basic_template(BOOST_EXPLICIT_TEMPLATE_TYPE(FlyweightSpecifier))
   }catch(const throwing_value_exception&){}
   try{
     throwing_flyweight fw=throwing_flyweight(throwing_value());
+    (void)fw;
   }catch(const throwing_value_exception&){}
 #endif