lib/pb-protocol: suppress warning for unused buf_len arg
authorJeremy Kerr <jk@ozlabs.org>
Tue, 5 Mar 2013 05:49:15 +0000 (13:49 +0800)
committerGeoff Levand <geoff@infradead.org>
Tue, 5 Mar 2013 14:06:17 +0000 (06:06 -0800)
When assert is disabled, we end up with an warning for buf_len.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
lib/pb-protocol/pb-protocol.c

index 54dfbf4e1f4e9469f627351268447f426d6afd9e..fdf24471377160e9a3c51abb87c4197e4e034e1c 100644 (file)
@@ -210,6 +210,7 @@ int pb_protocol_serialise_device(const struct device *dev, char *buf, int buf_le
        }
 
        assert(pos <= buf + buf_len);
+       (void)buf_len;
 
        return 0;
 }