From: Igor Sugak Date: Tue, 13 Oct 2015 00:18:50 +0000 (-0700) Subject: folly: fix build with clang 3.6 -Werror X-Git-Tag: deprecate-dynamic-initializer~338 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=498bc465f04dd6535c5ace0669feee47292e497d;p=folly.git folly: fix build with clang 3.6 -Werror Summary: Fix a few `-Wsign-compare` violations Reviewed By: @meyering Differential Revision: D2527969 fb-gh-sync-id: 140acbd06eedf2e2a315e1927b331ff5efb20d0f --- diff --git a/folly/test/ReadMostlySharedPtrBenchmark.cpp b/folly/test/ReadMostlySharedPtrBenchmark.cpp index e135b6c2..37abfc05 100644 --- a/folly/test/ReadMostlySharedPtrBenchmark.cpp +++ b/folly/test/ReadMostlySharedPtrBenchmark.cpp @@ -201,7 +201,7 @@ void benchReadsWhenWriting(int n) { }); } - for (uint64_t i = 0; i < n; ++i) { + for (int i = 0; i < n; ++i) { auto val = ptr.load(); folly::doNotOptimizeAway(val.get()); } @@ -229,7 +229,7 @@ void benchWritesWhenReading(int n) { } - for (uint64_t i = 0; i < n; ++i) { + for (int i = 0; i < n; ++i) { ptr.store(folly::make_unique(3)); }