From 1c5746941104fa91841b23cb77d24e482e9f3c27 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 26 Apr 2025 11:33:23 +0200 Subject: [PATCH] argp: Fix -Wmissing-variable-declarations warnings. * lib/argp-ba.c: Include and argp.h. * lib/argp-pv.c: Likewise. --- ChangeLog | 6 ++++++ lib/argp-ba.c | 7 +++++++ lib/argp-pv.c | 7 +++++++ 3 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1e7d87b8ad..bbb145d907 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-04-26 Bruno Haible + + argp: Fix -Wmissing-variable-declarations warnings. + * lib/argp-ba.c: Include and argp.h. + * lib/argp-pv.c: Likewise. + 2025-04-26 Bruno Haible vasnprintf: Fix -Wshadow=local warnings. diff --git a/lib/argp-ba.c b/lib/argp-ba.c index 66c0509886..7672573717 100644 --- a/lib/argp-ba.c +++ b/lib/argp-ba.c @@ -16,6 +16,13 @@ You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + +/* Specification. */ +#include "argp.h" + /* If set by the user program, it should point to string that is the bug-reporting address for the program. It will be printed by argp_help if the ARGP_HELP_BUG_ADDR flag is set (as it is by various standard help diff --git a/lib/argp-pv.c b/lib/argp-pv.c index 3059b8698e..1c76165b40 100644 --- a/lib/argp-pv.c +++ b/lib/argp-pv.c @@ -16,6 +16,13 @@ You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +# include +#endif + +/* Specification. */ +#include "argp.h" + /* If set by the user program to a non-zero value, then a default option --version is added (unless the ARGP_NO_HELP flag is used), which will print this string followed by a newline and exit (unless the -- 2.39.5