mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user