From fefed57c88a4cdd3f6cbcb75c1f1cbe462b85e0e Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sat, 6 Jan 2024 16:28:01 -0500 Subject: [PATCH] help: Improve compatibility with old compilers. Before C99 it is not allowed to have a comma after the last item in an enum declaration, even though a lot of C89 compilers do support it. --- src/help.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/help.c b/src/help.c index a635a15..2e6043b 100644 --- a/src/help.c +++ b/src/help.c @@ -1,5 +1,5 @@ /* - * Copyright © 2021-2023 Nick Bowler + * Copyright © 2021-2024 Nick Bowler * * Helper functions for formatting --help program output. * @@ -72,7 +72,7 @@ enum { OPT_SHORT_WITHOUT_ARG = 4, OPT_LONG_WITH_OPTIONAL_ARG = 2, OPT_LONG_WITH_MANDATORY_ARG = 1, - OPT_LONG_WITHOUT_ARG = 0, + OPT_LONG_WITHOUT_ARG = 0 }; #if HELP_GETOPT_LONG_ONLY -- 2.11.4.GIT