Message ID | 1285536587-5265-1-git-send-email-vapier@gentoo.org |
---|---|
State | Accepted, archived |
Commit | 2f2362c9321f00ba7d4ff85294c2852c9b716f7d |
Headers | show |
On Sun, 2010-09-26 at 17:29 -0400, Mike Frysinger wrote: > 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> Pushed, thanks!
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;
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(-)