diff options
author | ii14 <ii14@users.noreply.github.com> | 2023-03-16 18:13:58 +0100 |
---|---|---|
committer | ii14 <ii14@users.noreply.github.com> | 2023-03-16 18:33:41 +0100 |
commit | 5bad9afed2189f3716865da42c66133d1f6da218 (patch) | |
tree | ae6d4ed001be42181b45e96a5018cd952b6e6801 /src/nvim/eval/typval.h | |
parent | 995196c614d14fa5947be4024fe8ea20c8a28973 (diff) | |
download | rneovim-5bad9afed2189f3716865da42c66133d1f6da218.tar.gz rneovim-5bad9afed2189f3716865da42c66133d1f6da218.tar.bz2 rneovim-5bad9afed2189f3716865da42c66133d1f6da218.zip |
build: sanitizers for gcc
GCC also supports sanitizers. GCC doesn't support -fsanitize-blacklist
option though, so replace .asan-blacklist file with no_sanitize_address
function attributes instead.
Diffstat (limited to 'src/nvim/eval/typval.h')
-rw-r--r-- | src/nvim/eval/typval.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/eval/typval.h b/src/nvim/eval/typval.h index 4a2654f03e..84e4067f9d 100644 --- a/src/nvim/eval/typval.h +++ b/src/nvim/eval/typval.h @@ -518,13 +518,15 @@ static inline bool tv_get_float_chk(const typval_T *const tv, float_T *const ret static inline DictWatcher *tv_dict_watcher_node_data(QUEUE *q) REAL_FATTR_NONNULL_ALL REAL_FATTR_NONNULL_RET REAL_FATTR_PURE - REAL_FATTR_WARN_UNUSED_RESULT REAL_FATTR_ALWAYS_INLINE; + REAL_FATTR_WARN_UNUSED_RESULT REAL_FATTR_ALWAYS_INLINE + FUNC_ATTR_NO_SANITIZE_ADDRESS; /// Compute the `DictWatcher` address from a QUEUE node. /// /// This only exists for .asan-blacklist (ASAN doesn't handle QUEUE_DATA pointer /// arithmetic). static inline DictWatcher *tv_dict_watcher_node_data(QUEUE *q) + FUNC_ATTR_NO_SANITIZE_ADDRESS { return QUEUE_DATA(q, DictWatcher, node); } |