|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] tools/xenstat: Fix -Wunused-function issue
commit 02378ea85c23ae914c0b0b19604ceff138f0f4dd
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Tue Aug 13 15:14:19 2019 +0100
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Wed Aug 14 12:04:20 2019 +0100
tools/xenstat: Fix -Wunused-function issue
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 unused.
Spotted by Travis-CI.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Wei Liu <wl@xxxxxxx>
---
tools/xenstat/libxenstat/src/xenstat.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/tools/xenstat/libxenstat/src/xenstat.c
b/tools/xenstat/libxenstat/src/xenstat.c
index bba143eb53..6f93d4e982 100644
--- a/tools/xenstat/libxenstat/src/xenstat.c
+++ b/tools/xenstat/libxenstat/src/xenstat.c
@@ -131,20 +131,6 @@ void xenstat_uninit(xenstat_handle * handle)
}
}
-static inline unsigned long long parse(char *s, char *match)
-{
- char *s1 = strstr(s,match);
- unsigned long long ret;
-
- if ( s1 == NULL )
- return 0LL;
- s1 += 2;
- if ( *s1++ != ':' )
- return 0LL;
- sscanf(s1,"%llu",&ret);
- return ret;
-}
-
xenstat_node *xenstat_get_node(xenstat_handle * handle, unsigned int flags)
{
#define DOMAIN_CHUNK_SIZE 256
--
generated by git-patchbot for /home/xen/git/xen.git#staging
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |