compr_rtime: fix unused warning
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.
Signed-off-by Mike Frysinger <[email protected]>
--- compr_rtime.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
compr_rtime.c +1 -1
@@ -64,7 +64,7 @@ static int jffs2_rtime_compress(unsigned char *data_in, unsigned char *cpage_outstatic 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
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.
Signed-off-by Mike Frysinger <[email protected]>
Pushed, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)