Skip to contentSkip to conversation

compr_rtime: fix unused warning

PATCH In review Mike Frysinger 2 participants 2 messages Sep 26, 2010 – Sep 27, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 compr_rtime.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
compr_rtime.c +1 -1
index 7818e1b..f24379d 100644
@@ -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;
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 4 lines · Mike Frysinger

The rtime logic causes gcc to emit an unused warning about srclen, so mark it with an unused attribute to shut it up.

Pushed, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)