mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
759 stars 140 forks source link

One compilation error with gcc -Wpedantic #79

Closed sgbeal closed 5 years ago

sgbeal commented 5 years ago
$ gcc -c md4c.c -I. -Wall -Wpedantic
md4c.c:184:14: warning: ISO C forbids forward references to ‘enum’ types [-Wpedantic]
 typedef enum MD_LINETYPE_tag MD_LINETYPE;
              ^~~~~~~~~~~~~~~

Moving that typedef below the enum on the next line fixes it (the only -Wpedantic warning).

mity commented 5 years ago

Fixed. Thanks for reporting.