]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix errors in bundled packages
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 25 Feb 2023 15:37:55 +0000 (10:37 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 25 Feb 2023 15:37:55 +0000 (10:37 -0500)
bundled/boost-1.70.0/include/boost/graph/depth_first_search.hpp
bundled/tbb-2018_U2/src/tbb/cache_aligned_allocator.cpp

index cf60e1ac843bc6abc66bd5ff619f418ede2f3a01..e9b41bcf71cf3f631b3634eedef451d13991712d 100644 (file)
@@ -156,7 +156,7 @@ namespace boost {
           ColorValue v_color = get(color, v);
           if (v_color == Color::white()) {
             vis.tree_edge(*ei, g);
-            src_e = *ei;
+            src_e = decltype(src_e)(*ei);
             stack.push_back(std::make_pair(u, std::make_pair(src_e, std::make_pair(++ei, ei_end))));
             u = v;
             put(color, u, Color::gray());
index e1e87132066d823fcfcca749417efca24989eba2..21cb209ee58372633882814a41ba7b76517253fe 100644 (file)
@@ -248,9 +248,10 @@ bool __TBB_EXPORTED_FUNC is_malloc_used_v3() {
     }
     __TBB_ASSERT( MallocHandler!=&DummyMalloc && FreeHandler!=&DummyFree, NULL );
     // Cast to void avoids type mismatch errors on some compilers (e.g. __IBMCPP__)
-    __TBB_ASSERT( !(((void*)MallocHandler==(void*)&malloc) ^ ((void*)FreeHandler==(void*)&free)),
+    __TBB_ASSERT( !(((void*)MallocHandler==(void*)static_cast<void*(*)(size_t)>(malloc)) ^
+                    ((void*)FreeHandler==(void*)static_cast<void(*)(void*)>(free))),
                   "Both shim pointers must refer to routines from the same package (either TBB or CRT)" );
-    return (void*)MallocHandler == (void*)&malloc;
+    return (void*)MallocHandler == (void*)static_cast<void*(*)(size_t)>(malloc);
 }
 
 } // namespace internal

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.