Skip to content

Commit

Permalink
avoid compiler warnings on unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
nonnenmacher committed Mar 16, 2018
1 parent 793faf9 commit b5729ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/nng.c
Original file line number Diff line number Diff line change
Expand Up @@ -1161,25 +1161,31 @@ int
nng_snapshot_create(nng_socket sock, nng_snapshot **snapp)
{
// Stats TBD.
NNI_ARG_UNUSED(sock)
NNI_ARG_UNUSED(snapp)
return (NNG_ENOTSUP);
}

void
nng_snapshot_free(nng_snapshot *snap)
{
NNI_ARG_UNUSED(snap)
// Stats TBD.
}

int
nng_snapshot_update(nng_snapshot *snap)
{
NNI_ARG_UNUSED(snap)
// Stats TBD.
return (NNG_ENOTSUP);
}

int
nng_snapshot_next(nng_snapshot *snap, nng_stat **statp)
{
NNI_ARG_UNUSED(snap)
NNI_ARG_UNUSED(statp)
// Stats TBD.
*statp = NULL;
return (NNG_ENOTSUP);
Expand All @@ -1188,27 +1194,31 @@ nng_snapshot_next(nng_snapshot *snap, nng_stat **statp)
const char *
nng_stat_name(nng_stat *stat)
{
NNI_ARG_UNUSED(stat)
// Stats TBD.
return (NULL);
}

int
nng_stat_type(nng_stat *stat)
{
NNI_ARG_UNUSED(stat)
// Stats TBD.
return (0);
}

int
nng_stat_unit(nng_stat *stat)
{
NNI_ARG_UNUSED(stat)
// Stats TBD.
return (0);
}

int64_t
nng_stat_value(nng_stat *stat)
{
NNI_ARG_UNUSED(stat)
// Stats TBD.
return (0);
}
Expand Down

0 comments on commit b5729ba

Please sign in to comment.