diff options
Diffstat (limited to 'src/support/global.c')
-rw-r--r-- | src/support/global.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/support/global.c b/src/support/global.c index eba88bf2b20..325666b1471 100644 --- a/src/support/global.c +++ b/src/support/global.c @@ -61,7 +61,7 @@ __wt_global_once(void) #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(); } /* |