From 2f2a2ed1c0bbba915d8fbb368503976317358592 Mon Sep 17 00:00:00 2001 From: "Craig A. Berry" Date: Thu, 28 Jun 2018 17:46:40 -0500 Subject: [PATCH] Fix Berkeley DB function type tests. These tests fail with clang with a missing return in non-void function warning, and any warning at all causes the types to default to int. It turns out DB::File doesn't use Configure's types, but we should report the correct thing in case anyone accesses them via %Config. --- Configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Configure b/Configure index 3be9f05..e7fd84d 100755 --- a/Configure +++ b/Configure @@ -19957,6 +19957,7 @@ define) #ifndef DB_VERSION_MAJOR u_int32_t hash_cb (const void* ptr, size_t size) { + return 0; } HASHINFO info; int main() @@ -20000,6 +20001,7 @@ define) #ifndef DB_VERSION_MAJOR size_t prefix_cb (const DBT *key1, const DBT *key2) { + return 0; } BTREEINFO info; int main() -- 1.8.3.1