Menu

#7 compilation failure in brz_search_packed in v1.1

open
nobody
None
5
2011-05-16
2011-05-16
No

Gcc on NetBSD prints a warning about missing return and it breaks a compilation because -Werror is being used. The fix is:

[screen pts/1] cat patches/patch-src_brz.c
$NetBSD$

--- src/brz.c.orig 2011-05-15 15:31:05.000000000 +0000
+++ src/brz.c
@@ -981,5 +981,6 @@ cmph_uint32 brz_search_packed(void *pack
return brz_bmz8_search_packed(ptr, key, keylen, fingerprint);
default: assert(0);
}
+ return 0;
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB