* [PATCH] compr_rtime: fix unused warning
@ 2010-09-26 21:29 Mike Frysinger
2010-09-27 6:33 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-09-26 21:29 UTC (permalink / raw)
To: linux-mtd
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>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-27 6:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-26 21:29 [PATCH] compr_rtime: fix unused warning Mike Frysinger
2010-09-27 6:33 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).