]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/type_traits/test/aligned_storage_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / type_traits / test / aligned_storage_test.cpp
index 517a402767a465f4ed980d872594afec2bc68790..2b86ecbe39682281012f3867387a8794f950bfa5 100644 (file)
@@ -32,11 +32,12 @@ inline void no_unused_warning(const volatile T&)
 #endif
 
 template <class T>
-void do_check(const T&)
+BOOST_TT_PROC void do_check(const T&)
 {
    typedef typename tt::aligned_storage<T::value,T::value>::type t1;
    t1 as1 = { 0, };
    must_be_pod<t1> pod1;
+#ifndef TEST_CUDA_DEVICE
    no_unused_warning(as1);
    no_unused_warning(pod1);
    BOOST_TEST_MESSAGE(typeid(t1).name());
@@ -74,6 +75,7 @@ void do_check(const T&)
    const t3 as4 = { 0, };
    BOOST_CHECK(as4.address() == static_cast<const void*>(&as4));
 #endif
+#endif
 }
 
 TT_TEST_BEGIN(type_with_alignment)