]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/denc: remove nullptr runtime magic boundedness check 13889/head
authorSage Weil <sage@redhat.com>
Thu, 9 Mar 2017 18:09:29 +0000 (13:09 -0500)
committerSage Weil <sage@redhat.com>
Thu, 9 Mar 2017 18:09:29 +0000 (13:09 -0500)
commitcdd0bf771a8d28a919061c0cfdf31ee78981fd9b
tree8283b9faa54445c988744f957708d413f01d8c31
parentfb5b59fc394167cab5808ef147d291152c4ce5cd
include/denc: remove nullptr runtime magic boundedness check

We were passing *(const T*)nullptr to bound_encode so that we
would segv at runtime in a bound_encode implementation had anyd
dependency on the value.  However, this relies on undefined
language behavior and fails on low optimization levels.

So drop these checks and rely on the developer to implement a
legal bound_encode()

Signed-off-by: Sage Weil <sage@redhat.com>
src/include/denc.h