diff options
| author | René Scharfe <l.s.r@web.de> | 2019-08-20 20:49:07 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-08-20 12:37:30 -0700 |
| commit | 19800bdc3f35fd0d0ab1bcef4dfa9ac69968288f (patch) | |
| tree | 57761cddc9b16daa5bdc7d764670ff824c2bccd9 /commit.c | |
| parent | parse-options: check empty value in OPT_INTEGER and OPT_ABBREV (diff) | |
| download | git-19800bdc3f35fd0d0ab1bcef4dfa9ac69968288f.tar.gz git-19800bdc3f35fd0d0ab1bcef4dfa9ac69968288f.zip | |
parseopt: move definition of enum parse_opt_result up
Define enum parse_opt_result before using it in a typedef. This avoids
the following compiler warning:
./parse-options.h:53:14: error: ISO C forbids forward references to 'enum' types [-Werror,-Wpedantic]
typedef enum parse_opt_result parse_opt_ll_cb(struct parse_opt_ctx_t *ctx,
^
While GCC and Clang both accept such a forward reference by default,
other compilers might be less forgiving.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
