]> git.ipfire.org Git - thirdparty/krb5.git/commit
Squash a Berkeley DB warning
authorGreg Hudson <ghudson@mit.edu>
Tue, 4 Apr 2023 18:23:19 +0000 (14:23 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 10 Apr 2023 17:23:05 +0000 (13:23 -0400)
commit45cde9809cad49a8ed8eb949a543b54d6e589c77
tree303604d44c348820aebeb5c5104bece3e782954d
parent7a05f6e01421d5b88391e45b6fb5c245e5844600
Squash a Berkeley DB warning

In __delpair(), the assignment to next_key is not used unless DEBUG is
defined, and the debugging assert can never fail--next_realkey() will
always return n + 1 as we just checked KEY_OFF(pagep, n + 1).  Remove
the variable, the assert, and the otherwise unused next_realkey()
function.  This change eliminates a warning issued by clang 14.
src/plugins/kdb/db2/libdb2/hash/hash_page.c