libgomp: Simplify 'parse_stacksize' call in 'libgomp/env.c:initialize_env'

Minor fix-up for commit r13-2545-g9f2fca56593a2b87026b399d26adcdca90705685
"OpenMP, libgomp: Environment variable syntax extension".  Supplying an array
of three elements is misleading: 'parse_stacksize' only looks at 'params[0]'.
Just let the compiler figure out the array size (..., as done elsewhere, too).

	libgomp/
	* env.c (initialize_env): Simplify 'parse_stacksize' call.
This commit is contained in:
Thomas Schwinge
2025-10-24 09:59:53 +02:00
parent 27861393a9
commit 41e2077fa2

View File

@@ -2455,7 +2455,7 @@ initialize_env (void)
const char *env = getenv ("GOMP_STACKSIZE");
if (env != NULL
&& parse_stacksize ("GOMP_STACKSIZE", env,
(void *[3]) {&none->icvs.stacksize}))
(void *[]) {&none->icvs.stacksize}))
gomp_set_icv_flag (&none->flags, GOMP_ICV_STACKSIZE);
}
if (none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_STACKSIZE))