summaryrefslogtreecommitdiff
path: root/test-parse-options.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-04-08 12:00:16 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-04-08 12:00:17 -0700
commitb389e04031ffe4c725161a082ff748bd33688641 (patch)
treebb76d767a8c91617cccb15f15371240360b4fd64 /test-parse-options.c
parentMerge branch 'ib/rev-parse-parseopt-argh' (diff)
parentparse-options: remove unused OPT_SET_PTR (diff)
downloadtgif-b389e04031ffe4c725161a082ff748bd33688641.tar.xz
Merge branch 'mr/opt-set-ptr'
OPT_SET_PTR() implementation was broken on IL32P64 platforms; it turns out that the macro is not used by any real user. * mr/opt-set-ptr: parse-options: remove unused OPT_SET_PTR parse-options: add cast to correct pointer type to OPT_SET_PTR MSVC: fix t0040-parse-options crash
Diffstat (limited to 'test-parse-options.c')
-rw-r--r--test-parse-options.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/test-parse-options.c b/test-parse-options.c
index 434e8b8929..5dabce60f3 100644
--- a/test-parse-options.c
+++ b/test-parse-options.c
@@ -59,8 +59,6 @@ int main(int argc, char **argv)
OPT_STRING(0, "st", &string, "st", "get another string (pervert ordering)"),
OPT_STRING('o', NULL, &string, "str", "get another string"),
OPT_NOOP_NOARG(0, "obsolete"),
- OPT_SET_PTR(0, "default-string", &string,
- "set string to default", (unsigned long)"default"),
OPT_STRING_LIST(0, "list", &list, "str", "add str to list"),
OPT_GROUP("Magic arguments"),
OPT_ARGUMENT("quux", "means --quux"),