klibc-bot for Greg Thelen
2019-Jan-18 16:42 UTC
[klibc] [klibc:master] remove unused variables
Commit-ID: f00d99cb73813d94730900e46752612a9ce4fadb Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=f00d99cb73813d94730900e46752612a9ce4fadb Author: Greg Thelen <gthelen at google.com> AuthorDate: Sun, 25 Feb 2018 23:16:33 -0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Wed, 2 Jan 2019 03:08:04 +0000 [klibc] remove unused variables Fix compilation warnings: $KLIBC/usr/klibc/asprintf.c: In function 'asprintf': $KLIBC/usr/klibc/asprintf.c:14:8: warning: unused variable 'p' [-Wunused-variable] char *p; $KLIBC/usr/klibc/asprintf.c:13:6: warning: unused variable 'bytes' [-Wunused-variable] int bytes; $KLIBC/usr/utils/readlink.c: In function 'main': $KLIBC/usr/utils/readlink.c:20:6: warning: unused variable 'i' [-Wunused-variable] int i; Signed-off-by: Greg Thelen <gthelen at google.com> Link: https://www.zytor.com/pipermail/klibc/2018-February/003977.html Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/asprintf.c | 2 -- usr/utils/readlink.c | 1 - 2 files changed, 3 deletions(-) diff --git a/usr/klibc/asprintf.c b/usr/klibc/asprintf.c index ce3aa76..42f3aa2 100644 --- a/usr/klibc/asprintf.c +++ b/usr/klibc/asprintf.c @@ -10,8 +10,6 @@ int asprintf(char **bufp, const char *format, ...) { va_list ap; int rv; - int bytes; - char *p; va_start(ap, format); rv = vasprintf(bufp, format, ap); diff --git a/usr/utils/readlink.c b/usr/utils/readlink.c index ffb0b1f..1f16c02 100644 --- a/usr/utils/readlink.c +++ b/usr/utils/readlink.c @@ -17,7 +17,6 @@ int main(int argc, char *argv[]) const char *name; char link_name[PATH_MAX]; int rv; - int i; progname = argv[0];