diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-24 13:22:35 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-05-24 13:22:35 +0200 |
commit | 97d26b9ee4bffda96e74fd1379cdddd47adbaf49 (patch) | |
tree | 40bda8423baadbcb89b8f7c47acd6445dfdcc92e /csum.h | |
parent | a168c8c7b8d6f884775815ba45868689fe43774e (diff) |
misc: fix some minor compile warnings all over
Some regarding unused parameter, some regarding signed/unsigned
comparison.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'csum.h')
-rw-r--r-- | csum.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,7 +24,8 @@ static inline unsigned short csum(unsigned short *buf, int nwords) return ~sum; } -static inline uint16_t calc_csum(void *addr, size_t len, int ccsum) +static inline uint16_t calc_csum(void *addr, size_t len, + int ccsum __maybe_unused) { return csum(addr, len >> 1); } |