[pgpool-committers: 9855] pgpool: Silence gcc warning.

Tatsuo Ishii ishii at sraoss.co.jp
Wed Apr 24 13:50:16 JST 2024


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.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=736e7266b5a7e519052b7f20f308b70e9e9a98e4

Modified Files
--------------
src/streaming_replication/pool_worker_child.c | 1 +
1 file changed, 1 insertion(+)



More information about the pgpool-committers mailing list