| Submitter | Mike Frysinger |
|---|---|
| Date | Sept. 26, 2010, 9:29 p.m. |
| Message ID | <1285536587-5265-1-git-send-email-vapier@gentoo.org> |
| Download | mbox | patch |
| Permalink | /patch/65801/ |
| State | Accepted, archived |
| Headers | show |
Comments
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!
Patch
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(-)