From: Robert Haas Date: Thu, 4 Apr 2024 19:52:52 +0000 (-0400) Subject: Remove reachable call to pg_unreachable(). X-Git-Tag: REL_17_BETA1~402 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12b964d7815b2f45fa3fc37264d3d1cb8e4562e3;p=thirdparty%2Fpostgresql.git Remove reachable call to pg_unreachable(). The loop just before this uses break, not return, so this line is reachable. Commit cafe1056558fe07cdc52b95205588fcd80870362 introduced this issue. Jelte Fennema-Nio, reviewed by Tristan Partin Discussion: http://postgr.es/m/CAGECzQTO72jKed5461W8cytV2Msh_e+WUZjOyX_RUQCbjk4LRA@mail.gmail.com --- diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index c005624e9c3..479f9f2be59 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3815,8 +3815,6 @@ wait_until_connected(PGconn *conn) pg_unreachable(); } } - - pg_unreachable(); } void