]> git.ipfire.org Git - thirdparty/make.git/commitdiff
[SV 65211] Fix load and loadapi tests.
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sat, 27 Jan 2024 21:37:59 +0000 (16:37 -0500)
committerPaul Smith <psmith@gnu.org>
Sat, 27 Jan 2024 21:40:36 +0000 (16:40 -0500)
* scripts/features/load: Suppress unused variable compiler warnings.
* scripts/features/loadapi: Ditto.

tests/scripts/features/load
tests/scripts/features/loadapi

index 41333a549e3cd4c1623c7c67ee04dfa451593a96..1c7ec570729c463e3d83be9c7996505c7af8edef 100644 (file)
@@ -31,6 +31,7 @@ int explicit_setup (unsigned int, gmk_floc *);
 int
 testload_gmk_setup (unsigned int abi, gmk_floc *pos)
 {
+    (void)abi;
     (void)pos;
     gmk_eval ("TESTLOAD = implicit", 0);
     if (getenv("TESTAPI_KEEP"))
@@ -41,6 +42,7 @@ testload_gmk_setup (unsigned int abi, gmk_floc *pos)
 int
 explicit_setup (unsigned int abi, gmk_floc *pos)
 {
+    (void)abi;
     (void)pos;
     gmk_eval ("TESTLOAD = explicit", 0);
     if (getenv("TESTAPI_KEEP"))
index 50e5d05fb8aacccf95403a154a241c01500efbdd..ab8ca23b5ae6c5c4b6e200dd70445c93b935b055 100644 (file)
@@ -56,6 +56,8 @@ func_test (const char *funcname, unsigned int argc, char **argv)
 {
     char *mem;
 
+    (void)argc;
+
     if (strcmp (funcname, "test-expand") == 0)
         return test_expand (argv[0]);
 
@@ -75,6 +77,8 @@ testapi_gmk_setup (unsigned int abi, const gmk_floc *floc)
 {
     const char *verbose = getenv ("TESTAPI_VERBOSE");
 
+    (void)abi;
+
     gmk_add_function ("test-expand", func_test, 1, 1, GMK_FUNC_DEFAULT);
     gmk_add_function ("test-noexpand", func_test, 1, 1, GMK_FUNC_NOEXPAND);
     gmk_add_function ("test-eval", func_test, 1, 1, GMK_FUNC_DEFAULT);