diff options
author | maximilian attems <max@stro.at> | 2011-07-10 00:06:12 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-07-10 00:06:12 +0200 |
commit | 390bd5a39dd3e700e62bd52150d472caaa585fb0 (patch) | |
tree | f252a391f2ec87974e328786df7f5b3f77ccfeb9 | |
parent | 16569ade271efae49329d1af8ceaa56a41806e16 (diff) | |
download | klibc-390bd5a39dd3e700e62bd52150d472caaa585fb0.tar.gz |
[klibc] gzip: Cleanup unused variable
The variable is not used in our gzip copy.
In the gzip code it is used to strip of .exe of progname,
which makes no sense in a unixish environment.
Cleans up build with recent gcc 4.6 of:
usr/gzip/gzip.c: In function ‘main’:
usr/gzip/gzip.c:231:9: warning: variable ‘proglen’ set but not used [-Wunused-but-set-variable]
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/gzip/gzip.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/usr/gzip/gzip.c b/usr/gzip/gzip.c index 8f4c121ee59e3..ab73de01a875f 100644 --- a/usr/gzip/gzip.c +++ b/usr/gzip/gzip.c @@ -228,11 +228,9 @@ int main (argc, argv) char **argv; { int file_count; /* number of files to precess */ - int proglen; /* length of progname */ int optc; /* current option */ progname = basename(argv[0]); - proglen = strlen(progname); /* Add options in GZIP environment variable if there is one */ env = add_envopt(&argc, &argv, OPTIONS_VAR); |