]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects-filter-options.h
list-objects-filter: remove OPT_PARSE_LIST_OBJECTS_FILTER_INIT()
authorRené Scharfe <l.s.r@web.de>
Tue, 29 Nov 2022 12:26:44 +0000 (13:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Nov 2022 01:00:35 +0000 (10:00 +0900)
commitd4f7036887f54184d666a1096ee96dfb2e9ad881
tree8e849ad6bb095019b6e06449b97cd6a42bb11a6a
parent0d5448a554723acfb0d8bbb131e0583504dc7230
list-objects-filter: remove OPT_PARSE_LIST_OBJECTS_FILTER_INIT()

OPT_PARSE_LIST_OBJECTS_FILTER_INIT() with a non-NULL second argument
passes a function pointer via an object pointer, which is undefined.  It
may work fine on platforms that implement C99 extension J.5.7 (Function
pointer casts).  Remove the unused macro and avoid the dependency on
that extension.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects-filter-options.c
list-objects-filter-options.h