From 62bbd6cf172733a1b30eeda1f3d4035fd70ec64b Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 2 Apr 2021 11:42:09 +0800 Subject: [PATCH] brz.c: Avoid C4715 warnings Later GLib versions assume that warning C4715 is an error as we want ot be sure that functions that return a value do indeed return one by all means. Avoid this warning by adding a 'return 0' in brz_search_packed(), it might be pointless but does indeed avoid the warning. --- cmph/brz.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmph/brz.c b/cmph/brz.c index cd35c8d8e..2fff05bf5 100644 --- a/cmph/brz.c +++ b/cmph/brz.c @@ -1028,7 +1028,9 @@ cmph_uint32 brz_search_packed(void *packed_mphf, const char *key, cmph_uint32 ke return brz_fch_search_packed(ptr, key, keylen, fingerprint); case CMPH_BMZ8: return brz_bmz8_search_packed(ptr, key, keylen, fingerprint); - default: assert(0); + default: + assert(0); + return 0; /* To avoid warnings that value must be returned */ } }