]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/timer/src/cpu_timer.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / timer / src / cpu_timer.cpp
index 49a61746c07d6d125c002c5aaa37c8efaaad853b..0802e9856090095fec5176a85a412d0bb37ed6b7 100644 (file)
@@ -104,8 +104,8 @@ namespace
         tick_factor = -1;
       else
       {
-        assert(tick_factor <= 1000000000LL); // logic doesn't handle large ticks
-        tick_factor = 1000000000LL / tick_factor;  // compute factor
+        assert(tick_factor <= INT64_C(1000000000)); // logic doesn't handle large ticks
+        tick_factor = INT64_C(1000000000) / tick_factor;  // compute factor
         if (!tick_factor)
           tick_factor = -1;
       }
@@ -247,13 +247,17 @@ namespace boost
       if (!is_stopped())
       {
         stop();  // the sooner we stop(), the better
+#ifndef BOOST_NO_EXCEPTIONS
         try
         {
+#endif
           report();
+#ifndef BOOST_NO_EXCEPTIONS
         }
         catch (...) // eat any exceptions
         {
         }
+#endif
       }
     }