summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-23 17:27:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-23 17:36:26 +0900
commitfe3ff5afb07e171fd950623c69abfbabbb2762a3 (patch)
treee7f285cf9cf0f84375e20c5d572e171b8af021e4 /internal.h
parentdc95b57a68da6999ce6a1542b3ad81c51429cc99 (diff)
Suppress paranoid warnings for external/3rd-party libraries
[Feature #15665]
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal.h b/internal.h
index 2511aff3ef..bf57094db0 100644
--- a/internal.h
+++ b/internal.h
@@ -117,10 +117,10 @@ extern "C" {
#endif
#if !__has_feature(memory_sanitizer)
-# define __msan_allocated_memory(x, y)
-# define __msan_poison(x, y)
-# define __msan_unpoison(x, y)
-# define __msan_unpoison_string(x)
+# define __msan_allocated_memory(x, y) ((void)(x), (void)(y))
+# define __msan_poison(x, y) ((void)(x), (void)(y))
+# define __msan_unpoison(x, y) ((void)(x), (void)(y))
+# define __msan_unpoison_string(x) ((void)(x))
#endif
/*!