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.
This commit is contained in:
Chun-wei Fan 2021-04-02 11:42:09 +08:00 committed by Emmanuele Bassi
parent 4dbd25b033
commit 62bbd6cf17

View File

@ -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 */
}
}