Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / contract / test / public_function / virtual_access.cpp
index 1deb85e..a83296a 100644 (file)
@@ -42,7 +42,7 @@ struct b { // Test all access levels (public, protected, and private).
     // to match signature of overriding functions).
 
 protected:
-    virtual void g(boost::contract::virtual_* = 0) {
+    virtual void g(boost::contract::virtual_* /* v */= 0) {
         boost::contract::check c = boost::contract::function()
             .precondition([] { out << "b::g::pre" << std::endl; })
             .old([] { out << "b::g::old" << std::endl; })
@@ -52,7 +52,7 @@ protected:
     }
 
 private:
-    virtual void h(boost::contract::virtual_* v = 0) {
+    virtual void h(boost::contract::virtual_* /* v */ = 0) {
         boost::contract::check c = boost::contract::function()
             .precondition([] { out << "b::h::pre" << std::endl; })
             .old([] { out << "b::h::old" << std::endl; })
@@ -81,7 +81,7 @@ struct a // Test overrides with mixed access levels from base.
         ;
         out << "a::f::body" << std::endl;
     }
-    BOOST_CONTRACT_OVERRIDES(f);
+    BOOST_CONTRACT_OVERRIDES(f)
 
     // Following do not override public members so no `override_...` param and
     // they do not actually subcontract.