diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2018-01-14 07:07:02 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2018-01-14 07:07:02 +0000 |
commit | 817c55606ad98c9c31e0dfa71d0ded70d7100739 (patch) | |
tree | c20deb725be9e9088208b9e4142896f6aceff21e | |
parent | clang 6 generates some new warnings, suppress them for now. (diff) |
Fix build with Clang 6
Reported by: ler
Tested by: ler
Notes
Notes:
svn path=/head/; revision=458954
-rw-r--r-- | databases/kyotocabinet/files/patch-kcdbext.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/kyotocabinet/files/patch-kcdbext.h b/databases/kyotocabinet/files/patch-kcdbext.h new file mode 100644 index 000000000000..2e55cf6fc001 --- /dev/null +++ b/databases/kyotocabinet/files/patch-kcdbext.h @@ -0,0 +1,11 @@ +--- kcdbext.h.orig 2012-05-24 16:27:59 UTC ++++ kcdbext.h +@@ -1278,7 +1278,7 @@ class IndexDB { + if (omode_ == 0) { + set_error(_KCCODELINE_, BasicDB::Error::INVALID, "not opened"); + *sp = 0; +- return false; ++ return NULL; + } + if (!cache_) return db_.get(kbuf, ksiz, sp); + size_t dvsiz = 0; |