summaryrefslogtreecommitdiff
path: root/src/lib/hash.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2017-04-19 11:10:08 +0200
committerSander Vrijders <[email protected]>2017-04-19 11:10:08 +0200
commit547180c9ecd2ef1cdae4ca33a844692795530b5a (patch)
treebf1e9631ffa335cc9d6513821b1e8f8d23bd976d /src/lib/hash.c
parent5cbeb1586b7a5a0d5975ee7dc0cd6a2d471b940a (diff)
downloadouroboros-547180c9ecd2ef1cdae4ca33a844692795530b5a.tar.gz
ouroboros-547180c9ecd2ef1cdae4ca33a844692795530b5a.zip
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.
Diffstat (limited to 'src/lib/hash.c')
-rw-r--r--src/lib/hash.c2
1 files changed, 2 insertions, 0 deletions
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,