diff --git a/modules/eventx/timeout_monitor_test.cpp b/modules/eventx/timeout_monitor_test.cpp index 8e4205b79aa49ac36aee79e93c2ac9b9707e40d6..438726327d15e1a60e66a2d6d8ed35e3fd70b3ad 100644 --- a/modules/eventx/timeout_monitor_test.cpp +++ b/modules/eventx/timeout_monitor_test.cpp @@ -75,7 +75,7 @@ TEST(TimeoutMonitor, Clear) sp_timer->enable(); bool run = false; - tm.setCallback([&] (int value) { + tm.setCallback([&] (int /*value*/) { run = true; }); diff --git a/modules/jsonrpc/protos/header_stream_proto_test.cpp b/modules/jsonrpc/protos/header_stream_proto_test.cpp index 041602a4f4a0d2491c6501890c749316ba69c900..4777a5700dfb2af0f5268f6aa90e3c0a2c0e5a1f 100644 --- a/modules/jsonrpc/protos/header_stream_proto_test.cpp +++ b/modules/jsonrpc/protos/header_stream_proto_test.cpp @@ -188,6 +188,8 @@ TEST(HeaderStreamProto, MultiPackages) { EXPECT_EQ(method, "test2"); } ++count; + UNUSED_VAR(id); + UNUSED_VAR(js_params); }, [] (int, const Response &) { } ); diff --git a/modules/jsonrpc/protos/raw_stream_proto_test.cpp b/modules/jsonrpc/protos/raw_stream_proto_test.cpp index fa6f9ae48db436040bde7cdf395a3973228e78b5..073a68635a02e63484a892d2e1bce3027b368b94 100644 --- a/modules/jsonrpc/protos/raw_stream_proto_test.cpp +++ b/modules/jsonrpc/protos/raw_stream_proto_test.cpp @@ -188,6 +188,8 @@ TEST(RawStreamProto, MultiPackages) { EXPECT_EQ(method, "test2"); } ++count; + UNUSED_VAR(id); + UNUSED_VAR(js_params); }, [] (int, const Response &) { } ); diff --git a/modules/jsonrpc/rpc_int_test.cpp b/modules/jsonrpc/rpc_int_test.cpp index b17636c51c09a1c00125ebbf29f0ca025e3676c2..abd79c425586f606e1aafbc2780b409de4b8d404 100644 --- a/modules/jsonrpc/rpc_int_test.cpp +++ b/modules/jsonrpc/rpc_int_test.cpp @@ -230,6 +230,7 @@ TEST(RpcInt, Clear) { [&] { rpc.request("A", Json(), [&] (const Response &r) { + UNUSED_VAR(r); is_method_cb_invoke = true; } );