From 3564b9022422f58b11258d492d331a01ee9976d7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 7 Jan 2015 13:40:41 -0800 Subject: [PATCH] folly/wangle/bootstrap/ServerBootstrap.h: avoid -Wsign-compare error (trivial) Summary: * folly/wangle/bootstrap/ServerBootstrap.h: Change type of a for-loop index from int to size_t. Test Plan: Run this and note there are fewer errors than before: fbconfig --platform-all=gcc-4.9-glibc-2.20 -r folly && fbmake dbgo Reviewed By: jsedgwick@fb.com Subscribers: fugalh, folly-diffs@ FB internal diff: D1770091 Tasks: 5941250 Signature: t1:1770091:1420667597:fbe9a5ba56a0e34e0480c82c8fb61128406ded95 --- folly/wangle/bootstrap/ServerBootstrap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/wangle/bootstrap/ServerBootstrap.h b/folly/wangle/bootstrap/ServerBootstrap.h index f77be3fb..dd5cbc56 100644 --- a/folly/wangle/bootstrap/ServerBootstrap.h +++ b/folly/wangle/bootstrap/ServerBootstrap.h @@ -178,7 +178,7 @@ class ServerBootstrap { bind0->wait(); auto barrier = std::make_shared(acceptor_group_->numThreads()); - for (int i = 1; i < acceptor_group_->numThreads(); i++) { + for (size_t i = 1; i < acceptor_group_->numThreads(); i++) { acceptor_group_->add(std::bind(startupFunc, barrier)); } barrier->wait(); -- 2.34.1