Re: [PATCH] parseopt: move definition of enum parse_opt_result up

2019-08-22 Thread Johannes Schindelin
Hi, On Tue, 20 Aug 2019, René Scharfe wrote: > 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_resu

[PATCH] parseopt: move definition of enum parse_opt_result up

2019-08-20 Thread René Scharfe
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,