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:
David Herrmann 2014-07-19 11:32:25 +02:00
parent a7850c7d13
commit 53290ee39d

View file

@ -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) {