From 030fc34314d97874d3e4f209d78277d1f3981a0e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 23 Nov 2018 07:09:52 -0800 Subject: fixes #799 Compile error on Windows with disabled stats --- src/core/stats.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/stats.h') diff --git a/src/core/stats.h b/src/core/stats.h index 87bd90a7..215e07d8 100644 --- a/src/core/stats.h +++ b/src/core/stats.h @@ -49,6 +49,8 @@ struct nni_stat_item { const char * si_string; // string value (NULL for numerics) uint64_t si_number; // numeric value nni_atomic_u64 si_atomic; // atomic value +#else + char si_disabled; // place holder, cannot be empty in C #endif }; -- cgit v1.2.3-70-g09d2