]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/example/policy_ref_snip13.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / math / example / policy_ref_snip13.cpp
index 3fd190667e99d874807d0307017b3e5a0a1dad07..ce4b0948c094d8ca167e4f5de81e7510ba45c8f1 100644 (file)
@@ -7,9 +7,13 @@
 // Note that this file contains quickbook mark-up as well as code
 // and comments, don't change any of the special comment mark-ups!
 
+#include <boost/config.hpp>
 #ifdef _MSC_VER
 #  pragma warning (disable : 4189) //  'd' : local variable is initialized but not referenced
 #endif
+#ifdef BOOST_GCC
+#  pragma GCC diagnostic ignored "-Wunused-variable"
+#endif
 
 #include <iostream>
 using std::cout; using std::endl;
@@ -51,6 +55,7 @@ void test_cauchy()
    try
    {
       double d = mean(myspace::cauchy());  // Cauchy does not have a mean!
+      (void) d;
    }
    catch(const std::domain_error& e)
    {