Skip to content

Commit

Permalink
Switch to ubsan suppress macro
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Bailey <[email protected]>
  • Loading branch information
danrbailey committed Oct 29, 2024
1 parent fe71e9d commit 49cc7de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openvdb/openvdb/tools/ValueTransformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ inline void foreach(const IterT& iter, const XformOp& op,
/// consider using @c tbb::parallel_for() or @c tbb::parallel_reduce() in conjunction
/// with a tree::IteratorRange that wraps a grid or tree iterator.
template<typename InIterT, typename OutGridT, typename XformOp>
inline __attribute__((no_sanitize("undefined")))
inline OPENVDB_UBSAN_SUPPRESS("undefined")
void transformValues(const InIterT& inIter, OutGridT& outGrid,
XformOp& op, bool threaded = true, bool shareOp = true,
MergePolicy merge = MERGE_ACTIVE_STATES);

template<typename InIterT, typename OutGridT, typename XformOp>
inline __attribute__((no_sanitize("undefined")))
inline OPENVDB_UBSAN_SUPPRESS("undefined")
void transformValues(const InIterT& inIter, OutGridT& outGrid,
const XformOp& op, bool threaded = true, bool shareOp = true,
MergePolicy merge = MERGE_ACTIVE_STATES);
Expand Down Expand Up @@ -587,7 +587,7 @@ class CopyableOpTransformer


template<typename InIterT, typename OutGridT, typename XformOp>
inline __attribute__((no_sanitize("undefined")))
inline OPENVDB_UBSAN_SUPPRESS("undefined")
void transformValues(const InIterT& inIter, OutGridT& outGrid, XformOp& op,
bool threaded, bool shared, MergePolicy merge)
{
Expand All @@ -605,7 +605,7 @@ void transformValues(const InIterT& inIter, OutGridT& outGrid, XformOp& op,
}

template<typename InIterT, typename OutGridT, typename XformOp>
inline __attribute__((no_sanitize("undefined")))
inline OPENVDB_UBSAN_SUPPRESS("undefined")
void transformValues(const InIterT& inIter, OutGridT& outGrid, const XformOp& op,
bool threaded, bool /*share*/, MergePolicy merge)
{
Expand Down

0 comments on commit 49cc7de

Please sign in to comment.