Skip to content
Permalink
Browse files

Fix coverity warnings

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
  • Loading branch information...
jdieter committed Aug 7, 2019
1 parent 3a46ef5 commit b1b132962120ce19960c11ba88b12ed299b4a55e
Showing with 1 addition and 10 deletions.
  1. +0 −9 meson.build
  2. +1 −1 src/lib/zck.c
@@ -11,15 +11,6 @@ common_cflags = [
cc = meson.get_compiler('c')
add_project_arguments(cc.get_supported_arguments(common_cflags), language : 'c')

# Fix coverity bug, shamelessly stolen from libinput
if get_option('coverity')
add_project_arguments('-D_Float128=__uint128_t', language : 'c')
add_project_arguments('-D_Float32x=int', language : 'c')
add_project_arguments('-D_Float32=int', language : 'c')
add_project_arguments('-D_Float64x=long', language : 'c')
add_project_arguments('-D_Float64=long', language : 'c')
endif

if get_option('with-zstd') == 'disabled'
zstd_dep = dependency('', required : false)
else
@@ -224,7 +224,7 @@ bool PUBLIC zck_set_soption(zckCtx *zck, zck_soption option, const char *value,
free(data);
set_fatal_error(zck, "Hash digest size mismatch for header "
"validation\n"
"Expected: %lu\nProvided: %lu",
"Expected: %i\nProvided: %lu",
chk_type.digest_size*2, length);
return false;
}

0 comments on commit b1b1329

Please sign in to comment.
You can’t perform that action at this time.