]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: duplicate an encoding macro to suppress warnings.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 19 Sep 2018 16:33:10 +0000 (18:33 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Sat, 6 Oct 2018 10:32:34 +0000 (12:32 +0200)
commitb29c3386a72b53ac914e7372bd01bf98c278040e
tree2190b7f01d96867eb1dfcc73091d005373cf7f1a
parent416bab914b80e733c1cda6ba033db9973caa09b3
common: duplicate an encoding macro to suppress warnings.

It looks that after deprecating the backward iterations over
bufferlist, the `DECODE_START_LEGACY_COMPAT_LEN` can't reuse
the `__DECODE_START_LEGACY_COMPAT_LEN` with `skip_v=0`. This
will have led to huge number of warning:

  src/include/encoding.h:1285:28: warning: comparison of
  unsigned expression < 0 is always false

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/include/encoding.h