From 2f2362c9321f00ba7d4ff85294c2852c9b716f7d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 26 Sep 2010 17:29:47 -0400 Subject: 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 Signed-off-by: Artem Bityutskiy --- compr_rtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3