From: Bruno Haible Date: Sat, 26 Apr 2025 09:33:23 +0000 (+0200) Subject: argp: Fix -Wmissing-variable-declarations warnings. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1c5746941104fa91841b23cb77d24e482e9f3c27;p=gnulib.git argp: Fix -Wmissing-variable-declarations warnings. * lib/argp-ba.c: Include and argp.h. * lib/argp-pv.c: Likewise. --- 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