Skip to content

Commit

Permalink
meson: silence unsigned shift overflow
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed Jun 28, 2024
1 parent 51edc1b commit 6545204
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6545204

Please sign in to comment.