summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/support/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/support/global.c')
-rw-r--r--src/third_party/wiredtiger/src/support/global.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/src/support/global.c b/src/third_party/wiredtiger/src/support/global.c
index eba88bf2b20..aa69e0db9d6 100644
--- a/src/third_party/wiredtiger/src/support/global.c
+++ b/src/third_party/wiredtiger/src/support/global.c
@@ -55,13 +55,13 @@ __wt_global_once(void)
return;
}
- __wt_cksum_init();
+ __wt_checksum_init();
TAILQ_INIT(&__wt_process.connqh);
#ifdef HAVE_DIAGNOSTIC
/* Load debugging code the compiler might optimize out. */
- (void)__wt_breakpoint();
+ __wt_breakpoint();
#endif
}
@@ -97,10 +97,14 @@ __wt_library_init(void)
* __wt_breakpoint --
* A simple place to put a breakpoint, if you need one.
*/
-int
+void
__wt_breakpoint(void)
{
- return (0);
+ /*
+ * Yield the processor (just to keep the compiler from optimizing the
+ * function out).
+ */
+ __wt_yield();
}
/*