summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-08-03 07:43:43 -0400
committerKeith Bostic <keith@wiredtiger.com>2015-08-03 07:43:43 -0400
commit929f178210156f461bed9eb64273cf0dcfaedfe3 (patch)
tree0adf0fc22e3f4ce7c0b69bcac7585e5aea87d390
parent55a989eaff47200d59af7531867385135e25562d (diff)
downloadmongo-929f178210156f461bed9eb64273cf0dcfaedfe3.tar.gz
wtperf.c 101 Warning 695: Inline function 'decode_key(char *)'
defined without a storage-class specifier ('static' recommended).
-rw-r--r--bench/wtperf/wtperf.c6
-rw-r--r--bench/wtperf/wtperf.h1
-rw-r--r--bench/wtperf/wtperf_truncate.c6
3 files changed, 6 insertions, 7 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c
index 148aa0e4e84..a4945c9f112 100644
--- a/bench/wtperf/wtperf.c
+++ b/bench/wtperf/wtperf.c
@@ -96,12 +96,6 @@ static uint64_t wtperf_value_range(CONFIG *);
#define HELIUM_CONFIG ",type=helium"
#define INDEX_COL_NAMES ",columns=(key,val)"
-inline uint64_t
-decode_key(char *key_buf)
-{
- return (strtoull(key_buf, NULL, 10));
-}
-
/* Retrieve an ID for the next insert operation. */
static inline uint64_t
get_next_incr(CONFIG *cfg)
diff --git a/bench/wtperf/wtperf.h b/bench/wtperf/wtperf.h
index e8bc01c78f5..6d4720c86f7 100644
--- a/bench/wtperf/wtperf.h
+++ b/bench/wtperf/wtperf.h
@@ -273,7 +273,6 @@ int config_opt_line(CONFIG *, const char *);
int config_opt_str(CONFIG *, const char *, const char *);
void config_print(CONFIG *);
int config_sanity(CONFIG *);
-uint64_t decode_key(char *);
void latency_insert(CONFIG *, uint32_t *, uint32_t *, uint32_t *);
void latency_read(CONFIG *, uint32_t *, uint32_t *, uint32_t *);
void latency_update(CONFIG *, uint32_t *, uint32_t *, uint32_t *);
diff --git a/bench/wtperf/wtperf_truncate.c b/bench/wtperf/wtperf_truncate.c
index 13932dc3c07..00d07d47d9a 100644
--- a/bench/wtperf/wtperf_truncate.c
+++ b/bench/wtperf/wtperf_truncate.c
@@ -28,6 +28,12 @@
#include "wtperf.h"
+static inline uint64_t
+decode_key(char *key_buf)
+{
+ return (strtoull(key_buf, NULL, 10));
+}
+
int
setup_truncate(CONFIG *cfg, CONFIG_THREAD *thread, WT_SESSION *session) {