]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/common/test_random.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / test / common / test_random.cc
index 667b69c789ee4c7b9442e6255b488c8cf51a7e4e..490f8d5476f59cf9dabadb7e08cc4799faf30312 100644 (file)
@@ -197,7 +197,13 @@ TEST(util, test_random_class_interface)
   // Test deduction guides:
   {
     { ceph::util::random_number_generator rng(1234); }
+#pragma clang diagnostic push
+    // Turn this warning off, since we're checking that the deduction
+    // guide works. (And we don't know what the seed type will
+    // actually be.)
+#pragma clang diagnostic ignored "-Wliteral-conversion"
     { ceph::util::random_number_generator rng(1234.1234); }
+#pragma clang diagnostic pop
 
     {
     int x = 1234;