Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-18 04:05:12 +0300
committerJunio C Hamano <gitster@pobox.com>2022-10-18 07:24:03 +0300
commit808e91956d1db707643c7f68c2b8fcc6f38a2d80 (patch)
tree01315b13285827c756eb12c41608d220c7e36d80 /compat/nonblock.c
parent827f8305c4d5a0300c669dc57cc2920537bba757 (diff)
mark unused parameters in trivial compat functions
When a platform feature isn't available or in use, we sometimes conditionally compile empty or trivial functions to turn these into noops. We need to annotate their parameters so that -Wunused-parameters won't complain about them. Note that there are many more of these in compat/mingw.h, but we'll leave them for now, as there's some trickery required to get the UNUSED macro available there. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/nonblock.c')
-rw-r--r--compat/nonblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/nonblock.c b/compat/nonblock.c
index 9694ebdb1d..5b51195c32 100644
--- a/compat/nonblock.c
+++ b/compat/nonblock.c
@@ -41,7 +41,7 @@ int enable_pipe_nonblock(int fd)
#else
-int enable_pipe_nonblock(int fd)
+int enable_pipe_nonblock(int fd UNUSED)
{
errno = ENOSYS;
return -1;