summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-06-14 10:26:24 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-06-14 10:26:24 -0400
commit2f207fcd8b20aeb804c6a3d2f399d5c350a0405d (patch)
tree0253e6cf08c0cba92dc85aa1f638e31bce6d7d81
parent60fce9f4ef5e5c4603271d167142262e07ab46e7 (diff)
downloadbfs-2f207fcd8b20aeb804c6a3d2f399d5c350a0405d.tar.xz
sanity: Make sanitize_[un]init() always a void expression
-rw-r--r--src/sanity.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sanity.h b/src/sanity.h
index 5696036..f2cf0a4 100644
--- a/src/sanity.h
+++ b/src/sanity.h
@@ -73,8 +73,8 @@
#define sanitize_uninit(...) SANITIZE_CALL(__msan_allocated_memory, __VA_ARGS__)
#else
-# define sanitize_init(...)
-# define sanitize_uninit(...)
+# define sanitize_init(...) ((void)0)
+# define sanitize_uninit(...) ((void)0)
#endif
/**