Skip to content

Commit

Permalink
[C/C++] Warnings cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Nov 26, 2021
1 parent d77f4a0 commit 14d47f0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
3 changes: 1 addition & 2 deletions aeron-driver/src/main/c/aeron_csv_table_name_resolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ int aeron_csv_table_name_resolver_resolve(

if (AERON_NAME_RESOLVER_CSV_DISABLE_RESOLUTION_OP == operation)
{
AERON_SET_ERR(
-AERON_ERROR_CODE_UNKNOWN_HOST, "Unable to resolve host=(%s): (forced)", hostname);
AERON_SET_ERR(-AERON_ERROR_CODE_UNKNOWN_HOST, "Unable to resolve host=(%s): (forced)", hostname);
return -1;
}
else if (AERON_NAME_RESOLVER_CSV_USE_INITIAL_RESOLUTION_HOST_OP == operation)
Expand Down
7 changes: 6 additions & 1 deletion aeron-driver/src/test/c/aeron_counters_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,12 @@ struct metadata_test_stct
};

void func_should_store_metadata(
int32_t id, int32_t type_id, const uint8_t *key, size_t key_length, const uint8_t *label, size_t label_length, void *clientd)
int32_t id, int32_t type_id,
const uint8_t *key,
size_t key_length,
const uint8_t *label,
size_t label_length,
void *clientd)
{
auto *info = reinterpret_cast<struct metadata_test_stct *>(clientd);
static size_t times_called = 0;
Expand Down
4 changes: 1 addition & 3 deletions aeron-driver/src/test/c/aeron_retransmit_handler_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ extern "C"
class RetransmitHandlerTest : public testing::Test
{
public:
RetransmitHandlerTest()
{
}
RetransmitHandlerTest() = default;

~RetransmitHandlerTest() override
{
Expand Down
4 changes: 2 additions & 2 deletions aeron-samples/src/main/c/cpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ int main(int argc, char **argv)

case 'S':
{
pong_stream_id = strtoul(optarg, NULL, 0);
pong_stream_id = (int32_t)strtoul(optarg, NULL, 0);
break;
}

case 's':
{
ping_stream_id = strtoul(optarg, NULL, 0);
ping_stream_id = (int32_t)strtoul(optarg, NULL, 0);
break;
}

Expand Down

0 comments on commit 14d47f0

Please sign in to comment.