Skip to content

Commit 1673744

Browse files
author
voetsjoeba
committed
nc_stats.h: Fix implicit stats_* function declarations when building with --disable-stats
1 parent 0f9e1ba commit 1673744

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/nc_stats.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ typedef enum stats_server_field {
182182

183183
#define stats_pool_decr_by(_ctx, _pool, _name, _val)
184184

185+
#define stats_pool_set_ts(_ctx, _pool, _name, _val)
186+
185187
#define stats_server_incr(_ctx, _server, _name)
186188

187189
#define stats_server_decr(_ctx, _server, _name)
@@ -190,6 +192,8 @@ typedef enum stats_server_field {
190192

191193
#define stats_server_decr_by(_ctx, _server, _name, _val)
192194

195+
#define stats_server_set_ts(_ctx, _server, _name, val)
196+
193197
#endif
194198

195199
#define stats_enabled NC_STATS

0 commit comments

Comments
 (0)