Ignore sanitizer error on scopedptr::takeownership
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
464b3f3ac1
commit
510fa60c0e
|
@ -49,6 +49,9 @@ namespace ArbUt {
|
|||
inline T* non_null operator->() const noexcept { return _raw; }
|
||||
|
||||
/// @brief Get the raw underlying pointer, and take ownership of it. This removes the existing pointer in here.
|
||||
#if defined(__clang__)
|
||||
[[clang::no_sanitize("nullability-assign")]]
|
||||
#endif
|
||||
inline T* non_null TakeOwnership() noexcept {
|
||||
auto raw = _raw;
|
||||
_raw = nullptr;
|
||||
|
|
Loading…
Reference in New Issue