From 65452048cfe89dbc616a94a13db5c0c8f791a831 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 28 Jun 2024 18:17:34 +0100 Subject: [PATCH] meson: silence unsigned shift overflow Signed-off-by: Yuxuan Shui --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 6bdd4eda57..809a324ded 100644 --- a/meson.build +++ b/meson.build @@ -34,6 +34,10 @@ if get_option('sanitize') if cc.has_argument('-fno-sanitize=unsigned-integer-overflow') add_global_arguments('-fno-sanitize=unsigned-integer-overflow', language: 'c') endif + if cc.has_argument('-fno-sanitize=unsigned-shift-base') + # uthash does a lot of this + add_global_arguments('-fno-sanitize=unsigned-shift-base', language: 'c') + endif endif if get_option('llvm_coverage')