summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-26 17:29:47 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-09-27 09:32:56 +0300
commit2f2362c9321f00ba7d4ff85294c2852c9b716f7d (patch)
tree57c9fc86a3aca93a7b720019224e36632e9f3e6c
parente960f7eb17f8d72f00364e9fc9f9a27b5563e318 (diff)
compr_rtime: fix unused warning
The rtime logic causes gcc to emit an unused warning about srclen, so mark it with an unused attribute to shut it up. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--compr_rtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compr_rtime.c b/compr_rtime.c
index 7818e1b..f24379d 100644
--- a/compr_rtime.c
+++ b/compr_rtime.c
@@ -64,7 +64,7 @@ static int jffs2_rtime_compress(unsigned char *data_in, unsigned char *cpage_out
static int jffs2_rtime_decompress(unsigned char *data_in, unsigned char *cpage_out,
- uint32_t srclen, uint32_t destlen)
+ __attribute__((unused)) uint32_t srclen, uint32_t destlen)
{
short positions[256];
int outpos = 0;