[SV 65211] Fix load and loadapi tests.

* scripts/features/load: Suppress unused variable compiler warnings.
* scripts/features/loadapi: Ditto.
This commit is contained in:
Dmitry Goncharov 2024-01-27 16:37:59 -05:00 committed by Paul Smith
parent 25049fef16
commit 1e43a5d104
2 changed files with 6 additions and 0 deletions

View 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"))

View 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);