diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2022-04-28 05:28:58 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2022-04-28 05:28:58 +0000 |
commit | e120b0396b8e7e9c7574a53ff322e5ab85cb1b87 (patch) | |
tree | 841e46b493ae3198b895250aa48196dd82d52568 | |
parent | c5a5ad88bb418d9a2478091bb68ad84e2f7870cf (diff) |
Get rid of set but not used compiler warning.
-rw-r--r-- | regress/sys/kern/flock/flock.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |