diff options
author | Keith Bostic <keith@wiredtiger.com> | 2014-10-10 09:02:55 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2014-10-10 09:02:55 -0400 |
commit | 607b133aa59f9bc9a3fbef13f552ee707071367e (patch) | |
tree | 6991df41194bbb4ca9ea0d4ae9a15d402ea67119 /bench | |
parent | ee28ec9dda6f88866bf1ac0269d3c823ed2ae116 (diff) | |
download | mongo-607b133aa59f9bc9a3fbef13f552ee707071367e.tar.gz |
gcc doesn't like externs inside functions (warning: nested extern
declaration ofXXX)
Diffstat (limited to 'bench')
-rw-r--r-- | bench/wtperf/wtperf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c index 95752e051d3..83017b42fb7 100644 --- a/bench/wtperf/wtperf.c +++ b/bench/wtperf/wtperf.c @@ -1915,12 +1915,13 @@ err: if (ret == 0) return (ret); } +extern int __wt_optind, __wt_optreset; +extern int __wt_getopt(const char *, int, char * const *, const char *); +extern char *__wt_optarg; + int main(int argc, char *argv[]) { - extern char *__wt_optarg; - extern int __wt_optind, __wt_optreset; - extern int __wt_getopt(const char *, int, char * const *, const char *); CONFIG *cfg, _cfg; size_t req_len; int ch, monitor_set, ret; |