Silence gcc warning.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 24 Apr 2024 04:43:25 +0000 (13:43 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 24 Apr 2024 04:43:25 +0000 (13:43 +0900)
commit736e7266b5a7e519052b7f20f308b70e9e9a98e4
tree4b3b102f1200501d36bff652d36dae4d4b344a93
parent62fb8312b668a0bc46b4ed84d4cd3ef63962057c
Silence gcc warning.

Commit 0b94cd9f caused a gcc warning:
streaming_replication/pool_worker_child.c: In function 'do_worker_child':
streaming_replication/pool_worker_child.c:281:40: warning: 'watchdog_leader' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (!pool_config->use_watchdog ||
                                        ^
It seems this only occures in older gcc (e.g. gcc 4.8.5).

Backpatch-thtrough: master branch only as commit 0b94cd9f only applied to master.
src/streaming_replication/pool_worker_child.c