From 547180c9ecd2ef1cdae4ca33a844692795530b5a Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 19 Apr 2017 11:10:08 +0200 Subject: lib: Fix compilation error in hash.c If compiled as release build, an error would be generated as the control reaches the end of a non-void function. --- src/lib/hash.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/lib/hash.c b/src/lib/hash.c index e7806d94..9db3a276 100644 --- a/src/lib/hash.c +++ b/src/lib/hash.c @@ -50,6 +50,8 @@ uint16_t hash_len(enum hash_algo algo) assert(false); break; } + + return 0; } void str_hash(enum hash_algo algo, -- cgit v1.2.3