summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-02-24 01:39:06 -0500
committerJunio C Hamano <gitster@pobox.com>2023-02-24 09:13:30 -0800
commit5fe9e1ce2f7e0be5ea817f2e4ae2c7edecf771c0 (patch)
tree8525e794f9e76c0868896e49041f625c81d893c5 /commit.c
parent2be1506a788a24e87ba4b53a1654c9ff40402750 (diff)
ref-filter: mark unused callback parameters
The ref-filter code uses virtual functions to handle specific atoms, but many of the functions ignore some parameters: - most atom parsers do not need the ref_format itself, unless they are looking at centralized options like use_color, quote_style, etc. - meta-atom handlers like append_atom(), align_atom_handler(), etc, can't generate errors, so ignore their "err" parameter - likewise, the handlers for then/else/end do not even need to look at their atom_value, as the "if" handler put everything they need into the ref_formatting_state stack Since these functions all have to conform to virtual function interfaces, we can't just drop the unused parameters, but must mark them as UNUSED (to appease -Wunused-parameter). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions