Skip to content

Commit

Permalink
Support -Werror=unused-function
Browse files Browse the repository at this point in the history
Summary: Support `-Werror=unused-function`.

Reviewed By: Orvid, guangyfb

Differential Revision: D17252831

fbshipit-source-id: ccf3829ebaa6992341ff5b1ab84c173922eeae03
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Sep 19, 2019
1 parent 1e4fdc4 commit e66dc58
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mcrouter/lib/carbon/example/main.cpp
Expand Up @@ -6,6 +6,7 @@
*/
#include <chrono>

#include <folly/CppAttributes.h>
#include <folly/fibers/FiberManagerMap.h>
#include <folly/init/Init.h>
#include <folly/io/async/EventBase.h>
Expand Down Expand Up @@ -108,7 +109,7 @@ AsyncMcServer::Options getOpts(uint16_t port) {
return opts;
}

void testClientServer() {
FOLLY_MAYBE_UNUSED void testClientServer() {
// Run simple HelloGoodbye server
AsyncMcServer server(getOpts(kPort));
spawnServer(server);
Expand Down Expand Up @@ -170,7 +171,7 @@ void sendHelloRequestSync(
baton.wait();
}

void testRouter() {
FOLLY_MAYBE_UNUSED void testRouter() {
// Run 2 simple HelloGoodbye server
AsyncMcServer server1(getOpts(kPort));
spawnServer(server1);
Expand Down Expand Up @@ -221,7 +222,7 @@ void testRouter() {
}
}

void testCarbonLookasideRouter() {
FOLLY_MAYBE_UNUSED void testCarbonLookasideRouter() {
// Run 2 simple HelloGoodbye server
AsyncMcServer server1(getOpts(kPort));
spawnServer(server1);
Expand Down Expand Up @@ -299,7 +300,7 @@ std::thread startThriftServer(
return serverThread;
}

void testCarbonThriftServer() {
FOLLY_MAYBE_UNUSED void testCarbonThriftServer() {
// Run one simple HelloGoodbye thrift server.
auto server1 = std::make_shared<apache::thrift::ThriftServer>();
auto server2 = std::make_shared<apache::thrift::ThriftServer>();
Expand Down

0 comments on commit e66dc58

Please sign in to comment.