mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
barrier: suppress false-positive warning
If poll() returns, one of both revents must be set, thus "buf" is set by either clause. This is non-obvious for code-checkers so add an "else continue;" clause to suppress "uninitialized variable" warnings.
This commit is contained in:
parent
a7850c7d13
commit
53290ee39d
@ -257,6 +257,8 @@ static bool barrier_read(Barrier *b, int64_t comp) {
|
||||
* guarantees that exit-abortions do not overwrite real
|
||||
* barriers. */
|
||||
buf = BARRIER_ABORTION;
|
||||
else
|
||||
continue;
|
||||
|
||||
/* lock if they aborted */
|
||||
if (buf >= (uint64_t)BARRIER_ABORTION) {
|
||||
|
Loading…
Reference in New Issue
Block a user