summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2018-06-28 17:46:40 -0500
committerCraig A. Berry <craigberry@mac.com>2018-07-07 21:27:30 -0500
commit2f2a2ed1c0bbba915d8fbb368503976317358592 (patch)
tree8646d8a50a36b09ce89b4a55ea973edc22b94cf9 /Configure
parent7e7bdfd74fb6c113e9fbec9b06b7f12a6be7a687 (diff)
downloadperl-2f2a2ed1c0bbba915d8fbb368503976317358592.tar.gz
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.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/Configure b/Configure
index 3be9f05b7d..e7fd84dfcc 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()