From: anton Date: Thu, 28 Apr 2022 05:28:57 +0000 (+0000) Subject: Get rid of set but not used compiler warning. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c8db1e5a7722dc7d5c8066669f3dd76aa6f02bdd;p=openbsd Get rid of set but not used compiler warning. --- diff --git a/regress/sys/kern/flock/flock.c b/regress/sys/kern/flock/flock.c index 154b85315bb..f4fa317600e 100644 --- a/regress/sys/kern/flock/flock.c +++ b/regress/sys/kern/flock/flock.c @@ -1288,6 +1288,7 @@ test15(int fd) err(1, "reading from pipe (child)"); fd2 = dup(fd); + FAIL(fd2 == -1); if (flock(fd, LOCK_SH) < 0) err(1, "flock shared");