diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-04-18 14:27:46 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-18 14:27:46 +0000 |
commit | 7107944a7b72ec31366c30d747fb91dee07ebc88 (patch) | |
tree | e7f4068863d6217fc3f70dea205c8f586f6d4079 /slirp | |
parent | 156aa8981a26ea6a71028edf85410b02e6f23654 (diff) |
slirp: fix unused return value, spotted by clang
Fix clang errors like:
CC slirp/cksum.o
/src/qemu/slirp/cksum.c:78:3: error: expression result unused [-Wunused-value]
REDUCE;
/src/qemu/slirp/cksum.c:45:66: note: instantiated from:
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'slirp')
-rw-r--r-- | slirp/cksum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slirp/cksum.c b/slirp/cksum.c index a044ec17cc..c3b45f7b3d 100644 --- a/slirp/cksum.c +++ b/slirp/cksum.c @@ -42,7 +42,8 @@ */ #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) -#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);} +#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; \ + (void)ADDCARRY(sum);} int cksum(struct mbuf *m, int len) { |