Re: [PATCH v2] test/argparse: change initialization to workaround LTO

2025-06-30 Thread Stephen Hemminger
On Mon, 30 Jun 2025 16:20:21 +0100 Bruce Richardson wrote: > On Mon, Jun 30, 2025 at 07:58:49AM -0700, Stephen Hemminger wrote: > > When compiled with Link Time Optimization, the existing code > > generated an error, because the compiler was unable to intuit > > that there was space in the flexib

Re: [PATCH v2] test/argparse: change initialization to workaround LTO

2025-06-30 Thread Bruce Richardson
On Mon, Jun 30, 2025 at 07:58:49AM -0700, Stephen Hemminger wrote: > When compiled with Link Time Optimization, the existing code > generated an error, because the compiler was unable to intuit > that there was space in the flexible array. > > In function ‘test_argparse_copy’, > inlined from ‘

[PATCH v2] test/argparse: change initialization to workaround LTO

2025-06-30 Thread Stephen Hemminger
When compiled with Link Time Optimization, the existing code generated an error, because the compiler was unable to intuit that there was space in the flexible array. In function ‘test_argparse_copy’, inlined from ‘test_argparse_init_obj’ at ../app/test/test_argparse.c:108:2, inlined from