Re: pgsql: Fix last remaining uninitialized memory warnings

2023-08-09 Thread Peter Smith
FYI - When building the latest HEAD I noticed some compiler warnings that seem related to this change pgbench.c: In function ‘evalStandardFunc’: pgbench.c:2242:2: warning: missing braces around initializer [-Wmissing-braces] PgBenchValue vargs[MAX_FARGS] = { 0 }; ^ pgbench.c:2242:2: warning: (

pgsql: Fix last remaining uninitialized memory warnings

2023-08-09 Thread Peter Eisentraut
Fix last remaining uninitialized memory warnings gcc (version 13) fails to properly analyze the code due to the loop stop condition including `l != NULL`. Let's just help it out. Author: Tristan Partin Discussion: https://www.postgresql.org/message-id/flat/CT6HJ3U8068R.3A8SJMV02D9BC@gonk Branc