diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index 30fc5d24..5f4bf3b4 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -417,6 +417,7 @@ a lot of data that needs to be copied, this should be set high. */ #define PBUF_STATS 0 #define SYS_STATS 0 #define RAW_STATS 0 +#define LWIP_STATS_DISPLAY 0 #endif /* LWIP_STATS */ diff --git a/src/include/lwip/stats.h b/src/include/lwip/stats.h index bd2c7bc0..71acfd06 100644 --- a/src/include/lwip/stats.h +++ b/src/include/lwip/stats.h @@ -147,6 +147,8 @@ void stats_init(void); /* Display of statistics */ #if LWIP_STATS_DISPLAY void stats_display(void); +#else +#define stats_display() #endif #endif /* __LWIP_STATS_H__ */