From c8db1e5a7722dc7d5c8066669f3dd76aa6f02bdd Mon Sep 17 00:00:00 2001 From: anton Date: Thu, 28 Apr 2022 05:28:57 +0000 Subject: [PATCH] Get rid of set but not used compiler warning. --- regress/sys/kern/flock/flock.c | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.20.1