Commit 97dd1ba8f72744d6d1b66c3c3b5592b6f68a7909

Martin Mitas 2019-05-20T14:16:48

Fix gcc warning at -Wpedantic. md4c.c:184:14: warning: ISO C forbids forward references to enumâ types [-Wpedantic] Fixes #79

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/md4c/md4c.c b/md4c/md4c.c
index ff483b3..b4ab7e5 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -181,7 +181,6 @@ struct MD_CTX_tag {
     int last_list_item_starts_with_two_blank_lines;
 };
 
-typedef enum MD_LINETYPE_tag MD_LINETYPE;
 enum MD_LINETYPE_tag {
     MD_LINE_BLANK,
     MD_LINE_HR,
@@ -195,6 +194,7 @@ enum MD_LINETYPE_tag {
     MD_LINE_TABLE,
     MD_LINE_TABLEUNDERLINE
 };
+typedef enum MD_LINETYPE_tag MD_LINETYPE;
 
 typedef struct MD_LINE_ANALYSIS_tag MD_LINE_ANALYSIS;
 struct MD_LINE_ANALYSIS_tag {