>From b75b05528803de1582d7bcfbd3480ee70a0e987b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 5 Oct 2019 01:07:52 -0700 Subject: [PATCH 2/3] Port ARGMATCH_DEFINE_GROUP calls to C99 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * src/complain.c, src/getargs.c: Omit ‘;’ after call to ARGMATCH_DEFINE_GROUP, as C99 does not allow ‘;’ there. --- src/complain.c | 2 +- src/getargs.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/complain.c b/src/complain.c index ead8ebf7..8715898f 100644 --- a/src/complain.c +++ b/src/complain.c @@ -107,7 +107,7 @@ flush (FILE *out) | --warnings's handling. | `------------------------*/ -ARGMATCH_DEFINE_GROUP(warning, warnings); +ARGMATCH_DEFINE_GROUP(warning, warnings) static const argmatch_warning_doc argmatch_warning_docs[] = { diff --git a/src/getargs.c b/src/getargs.c index 68894633..8c66c925 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -166,7 +166,7 @@ enum color color_auto }; -ARGMATCH_DEFINE_GROUP(color, enum color); +ARGMATCH_DEFINE_GROUP(color, enum color) static const argmatch_color_doc argmatch_color_docs[] = { @@ -202,7 +202,7 @@ const argmatch_color_group_type argmatch_color_group = | --report's handling. | `----------------------*/ -ARGMATCH_DEFINE_GROUP(report, enum report); +ARGMATCH_DEFINE_GROUP(report, enum report) static const argmatch_report_doc argmatch_report_docs[] = { @@ -240,7 +240,7 @@ const argmatch_report_group_type argmatch_report_group = | --trace's handling. | `---------------------*/ -ARGMATCH_DEFINE_GROUP(trace, enum trace); +ARGMATCH_DEFINE_GROUP(trace, enum trace) static const argmatch_trace_doc argmatch_trace_docs[] = { @@ -299,7 +299,7 @@ const argmatch_trace_group_type argmatch_trace_group = | --feature's handling. | `-----------------------*/ -ARGMATCH_DEFINE_GROUP(feature, enum feature); +ARGMATCH_DEFINE_GROUP(feature, enum feature) static const argmatch_feature_doc argmatch_feature_docs[] = { -- 2.17.1