diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-06-08 00:58:49 -0400 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-06-08 14:58:49 +1000 |
commit | 36229a2693aa6e7bcb8fa471edf1ab05ee79869a (patch) | |
tree | 4a9e197e64f2d1c1a07b2595c828814cb82019a2 /examples | |
parent | 1e30ff33750b5a5885420654f6d39101b6cb8610 (diff) | |
download | mongo-36229a2693aa6e7bcb8fa471edf1ab05ee79869a.tar.gz |
WT-2682 add option to configure WiredTiger with strict compiler flags (#2773)
Add the --enable-strict option that uses our current best guess at the right flags for strict compilation.
While adding the option, expand the set of flags we can compile cleanly with.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c/ex_event_handler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/c/ex_event_handler.c b/examples/c/ex_event_handler.c index f2cdd00d9d7..7122e71882e 100644 --- a/examples/c/ex_event_handler.c +++ b/examples/c/ex_event_handler.c @@ -68,7 +68,7 @@ handle_wiredtiger_error(WT_EVENT_HANDLER *handler, /* Report the error on the console. */ fprintf(stderr, "app_id %s, thread context %p, error %d, message %s\n", - custom_handler->app_id, session, error, message); + custom_handler->app_id, (void *)session, error, message); return (0); } @@ -83,7 +83,8 @@ handle_wiredtiger_message( { /* Cast the handler back to our custom handler. */ printf("app id %s, thread context %p, message %s\n", - ((CUSTOM_EVENT_HANDLER *)handler)->app_id, session, message); + ((CUSTOM_EVENT_HANDLER *)handler)->app_id, + (void *)session, message); return (0); } |