From 7c1ff5ed1e48af413494b9070cccf79f3858b749 Mon Sep 17 00:00:00 2001 From: JaylinYu <64823539+JaylinYu@users.noreply.github.com> Date: Fri, 13 Nov 2020 16:01:40 +0800 Subject: *Fix Add missing #define when disabling NNG_ENABLE_STATS (#1342) Co-authored-by: Jaylin --- src/core/stats.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/stats.c') diff --git a/src/core/stats.c b/src/core/stats.c index 14cf7978..85e7d030 100644 --- a/src/core/stats.c +++ b/src/core/stats.c @@ -162,7 +162,7 @@ nni_stat_set_bool(nni_stat_item *item, bool b) item->si_value.sv_bool = b; #else NNI_ARG_UNUSED(item); - NNI_ARG_UNUSED(id); + NNI_ARG_UNUSED(b); #endif } @@ -192,8 +192,8 @@ nni_stat_set_string(nni_stat_item *item, const char *s) nni_strfree(old); #else - NNG_ARG_UNUSED(item); - NNG_ARG_UNUSED(s); + NNI_ARG_UNUSED(item); + NNI_ARG_UNUSED(s); #endif } @@ -207,7 +207,7 @@ nni_stat_set_value(nni_stat_item *item, uint64_t v) item->si_value.sv_number = v; } #else - NNI_ARG_UNUSED(stat); + NNI_ARG_UNUSED(item); NNI_ARG_UNUSED(v); #endif } -- cgit v1.2.3-70-g09d2