Skip to content

Commit

Permalink
Port ARGMATCH_DEFINE_GROUP calls to C99
Browse files Browse the repository at this point in the history
* src/complain.c, src/getargs.c: Omit ‘;’ after call
to ARGMATCH_DEFINE_GROUP, as C99 does not allow ‘;’ there.
  • Loading branch information
eggert committed Oct 5, 2019
1 parent 41e84cd commit b75b055
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/complain.c
Expand Up @@ -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[] =
{
Expand Down
8 changes: 4 additions & 4 deletions src/getargs.c
Expand Up @@ -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[] =
{
Expand Down Expand Up @@ -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[] =
{
Expand Down Expand Up @@ -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[] =
{
Expand Down Expand Up @@ -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[] =
{
Expand Down

0 comments on commit b75b055

Please sign in to comment.