[PATCH] compr_rtime: fix unused warning
Mike Frysinger
vapier at gentoo.org
Sun Sep 26 17:29:47 EDT 2010
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 at gentoo.org>
---
compr_rtime.c | 2 +-
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;
--
1.7.2.3
More information about the linux-mtd
mailing list