]> Savannah Git Hosting - gnulib.git/commitdiff
argp: Fix -Wmissing-variable-declarations warnings.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Apr 2025 09:33:23 +0000 (11:33 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 26 Apr 2025 09:33:23 +0000 (11:33 +0200)
* lib/argp-ba.c: Include <config.h> and argp.h.
* lib/argp-pv.c: Likewise.

ChangeLog
lib/argp-ba.c
lib/argp-pv.c

index 1e7d87b8ad3f0f6b48963bb17c4859aac48d8a79..bbb145d9072c317a2a83bd225b174c336728f5a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-04-26  Bruno Haible  <bruno@clisp.org>
+
+       argp: Fix -Wmissing-variable-declarations warnings.
+       * lib/argp-ba.c: Include <config.h> and argp.h.
+       * lib/argp-pv.c: Likewise.
+
 2025-04-26  Bruno Haible  <bruno@clisp.org>
 
        vasnprintf: Fix -Wshadow=local warnings.
index 66c0509886c1ad7b28473670decfab94560e8999..7672573717300485b00d13d07244b5c863cefbd1 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
index 3059b8698e7586da5acbd68573b82c3dd2ad7f20..1c76165b4093fdf92a588cf5cd5a1632c6b6909e 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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