diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2011-09-30 12:13:26 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-01 23:34:38 +0200 |
commit | 7b8ffea2ac44097ed1c99ba70b8c6a4cf12ba0b4 (patch) | |
tree | 7cdf9f264fee101de29c5c639de6553ef3caa481 /lib | |
parent | 2984fd1673fd76de0182c9626c3d66ea2e0486e7 (diff) | |
download | u-boot-7b8ffea2ac44097ed1c99ba70b8c6a4cf12ba0b4.tar.gz |
GCC4.6: Squash warning in lzo1x_decompress.c
lzo1x_decompress.c: In function ‘parse_header’:
lzo1x_decompress.c:35:5: warning: variable ‘level’ set but not used
[-Wunused-but-set-variable]
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lzo/lzo1x_decompress.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/lzo/lzo1x_decompress.c b/lib/lzo/lzo1x_decompress.c index 09bdc8f6ca..e6ff708f11 100644 --- a/lib/lzo/lzo1x_decompress.c +++ b/lib/lzo/lzo1x_decompress.c @@ -32,7 +32,6 @@ static const unsigned char lzop_magic[] = { static inline const unsigned char *parse_header(const unsigned char *src) { - u8 level = 0; u16 version; int i; @@ -47,7 +46,7 @@ static inline const unsigned char *parse_header(const unsigned char *src) version = get_unaligned_be16(src); src += 7; if (version >= 0x0940) - level = *src++; + src++; if (get_unaligned_be32(src) & HEADER_HAS_FILTER) src += 4; /* filter info */ |