From: Dmitry Goncharov Date: Sat, 27 Jan 2024 21:37:59 +0000 (-0500) Subject: [SV 65211] Fix load and loadapi tests. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e43a5d1046f990ddaccf2bf647565a34eb56bda;p=thirdparty%2Fmake.git [SV 65211] Fix load and loadapi tests. * scripts/features/load: Suppress unused variable compiler warnings. * scripts/features/loadapi: Ditto. --- diff --git a/tests/scripts/features/load b/tests/scripts/features/load index 41333a54..1c7ec570 100644 --- a/tests/scripts/features/load +++ b/tests/scripts/features/load @@ -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")) diff --git a/tests/scripts/features/loadapi b/tests/scripts/features/loadapi index 50e5d05f..ab8ca23b 100644 --- a/tests/scripts/features/loadapi +++ b/tests/scripts/features/loadapi @@ -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);