From f0f795549745c54ebc8cef85fdb3809f481a1ab1 Mon Sep 17 00:00:00 2001 From: "mike@arpaia.co" Date: Mon, 29 Sep 2014 16:05:25 -0700 Subject: [PATCH] Fixing comile errors on OS X Summary: Building master on OS X has some compile errors due to implicit type conversions which generate warnings which RocksDB's build settings raise as errors. Test Plan: It compiles! Reviewers: ljin, igor Reviewed By: ljin Differential Revision: https://reviews.facebook.net/D24135 --- db/db_bench.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/db_bench.cc b/db/db_bench.cc index 3dec1f321..bbd807c2c 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -1278,7 +1278,8 @@ class Benchmark { method = &Benchmark::ReadRandomFast; } else if (name == Slice("multireadrandom")) { entries_per_batch_ = FLAGS_batch_size; - fprintf(stderr, "entries_per_batch_ = %ld\n", entries_per_batch_); + fprintf(stderr, "entries_per_batch = %" PRIi64 "\n", + entries_per_batch_); method = &Benchmark::MultiReadRandom; } else if (name == Slice("readmissing")) { ++key_size_;