Paul Eggert <egg...@cs.ucla.edu> writes: >> that 'return (struct ...) { initializers }' >> produces particularly good code with modern compilers) > > Yeah, that's partly why I weighed in on this seemingly-obscure topic. > I like the more-functional style and wouldn't want "undefined > behavior" to get in its way.
It would make things more friendly to -fanalyzer. Thats how I noticed the uninitialized members previously [1]. Though that is mostly my fault for forgetting -DGCC_LINT or tampering with CFLAGS directly instead of using --enable-compile-warnings or some other option that defines it. Collin [1] https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00122.html