mirror of
https://github.com/mirror/make.git
synced 2025-03-25 17:20:47 +08:00
[SV 65211] Fix load and loadapi tests.
* scripts/features/load: Suppress unused variable compiler warnings. * scripts/features/loadapi: Ditto.
This commit is contained in:
parent
25049fef16
commit
1e43a5d104
@ -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"))
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user