]> git.ipfire.org Git - thirdparty/git.git/commit
mark unused parameters in trivial compat functions
authorJeff King <peff@peff.net>
Tue, 18 Oct 2022 01:05:12 +0000 (21:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Oct 2022 04:24:03 +0000 (21:24 -0700)
commit808e91956d1db707643c7f68c2b8fcc6f38a2d80
tree01315b13285827c756eb12c41608d220c7e36d80
parent827f8305c4d5a0300c669dc57cc2920537bba757
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>
compat/nonblock.c
exec-cmd.c
git-compat-util.h