]> git.ipfire.org Git - thirdparty/systemd.git/commit
macro: upgrade ref counting overflow check assert() → assert_se()
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Apr 2022 20:10:43 +0000 (22:10 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 20 Apr 2022 23:56:32 +0000 (08:56 +0900)
commit7d3e856e824ce54f8e768df3ffde2b25c8c21d1d
tree102e83c7e73382cd3f1b9976c865edce4b2713cc
parent55fc776bbcd5b761007dfe02d0dce0a8d6692f89
macro: upgrade ref counting overflow check assert() → assert_se()

The overflow check for ref counting should not be subject to NDEBUG,
hence upgrade assert() → assert_se(). (The check for zero is an
immediate bug in our code, and should be impossible to trigger, hence
it's fine if the check is optimized away if people are crazy enough to
set NDEBUG, so that can stay assert())

https://github.com/systemd/systemd/pull/23099#discussion_r854341850
src/basic/macro.h