]> git.ipfire.org Git - thirdparty/git.git/commit
date: mark unused parameters in handler functions
authorJeff King <peff@peff.net>
Tue, 18 Oct 2022 01:05:52 +0000 (21:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Oct 2022 04:24:04 +0000 (21:24 -0700)
commit7829746a6ceca69813348331833b0b6940f41d54
tree756f763d090db78b17fb109ae63effbf2c437441
parent1ee347104576c8a2681edd79ed8328791f0677d2
date: mark unused parameters in handler functions

When parsing approxidates, we use a table to map special strings (like
"noon") to functions which handle them. Not all functions need the "now"
parameter, as they are not relative (e.g., "yesterday" does, but "pm"
does not). Let's annotate those to make -Wunused-parameter happy.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c