summaryrefslogtreecommitdiff
path: root/exec-cmd.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-18 01:05:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-10-18 04:24:03 (GMT)
commit808e91956d1db707643c7f68c2b8fcc6f38a2d80 (patch)
tree01315b13285827c756eb12c41608d220c7e36d80 /exec-cmd.c
parent827f8305c4d5a0300c669dc57cc2920537bba757 (diff)
downloadgit-808e91956d1db707643c7f68c2b8fcc6f38a2d80.zip
git-808e91956d1db707643c7f68c2b8fcc6f38a2d80.tar.gz
git-808e91956d1db707643c7f68c2b8fcc6f38a2d80.tar.bz2
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 'exec-cmd.c')
-rw-r--r--exec-cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec-cmd.c b/exec-cmd.c
index eeb2ee5..0232bbc 100644
--- a/exec-cmd.c
+++ b/exec-cmd.c
@@ -252,7 +252,7 @@ static const char *system_prefix(void)
* This is called during initialization, but No work needs to be done here when
* runtime prefix is not being used.
*/
-void git_resolve_executable_dir(const char *argv0)
+void git_resolve_executable_dir(const char *argv0 UNUSED)
{
}