Suppress uninitialized-variable warning.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Jul 2025 13:42:22 +0000 (09:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Jul 2025 13:42:22 +0000 (09:42 -0400)
commitb9ebb92bcb6e0db111deacfbc14f470ce1b3ed8d
tree4587ad6c7cb8e0f0597397aa1b59ff67bfc4dd01
parent1d1612aec7688139e1a5506df1366b4b6a69605d
Suppress uninitialized-variable warning.

In the wake of commit 80aa9848b, a few compilers think that
postgresAcquireSampleRowsFunc's "reltuples" might be used
uninitialized.  The logic is visibly correct, both before
and after that change; presumably what happened here is that
the previous presence of a setjmp() in the function stopped
them from attempting any flow analysis at all.  Add a dummy
initialization to silence the warning.

Reported-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAExHW5tkerCufA_F6oct5dMJ61N+yVrVgYXL7M8dD-5_zXjrDw@mail.gmail.com
contrib/postgres_fdw/postgres_fdw.c