Re: [Xen-devel] [PATCH 2/1] toos/xenstat: Fix -Wunused-function issue

2019-08-14 Thread Wei Liu
On Tue, Aug 13, 2019 at 03:21:28PM +0100, Andrew Cooper wrote: > When compiling xenstat with -Werror, Clang complains: > > src/xenstat.c:134:34: error: unused function 'parse' > [-Werror,-Wunused-function] > static inline unsigned long long parse(char *s, char *match) >

[Xen-devel] [PATCH 2/1] toos/xenstat: Fix -Wunused-function issue

2019-08-13 Thread Andrew Cooper
When compiling xenstat with -Werror, Clang complains: src/xenstat.c:134:34: error: unused function 'parse' [-Werror,-Wunused-function] static inline unsigned long long parse(char *s, char *match) ^ 1 error generated. Drop the function. It really is unuse