Use pg_assume() to avoid compiler warning below exec_set_found()
authorAndres Freund <andres@anarazel.de>
Wed, 9 Jul 2025 22:38:05 +0000 (18:38 -0400)
committerAndres Freund <andres@anarazel.de>
Wed, 9 Jul 2025 22:40:54 +0000 (18:40 -0400)
commit48a23f6eae710d2c5c29f38e66d76e7919117e4d
tree465a77a79389dbecdc2529a0f00c34fdf4b8c017
parentd65eb5b1b84e9104144b6b07b526bc73e819d6d7
Use pg_assume() to avoid compiler warning below exec_set_found()

The warning, visible when building with -O3 and a recent-ish gcc, is due to
gcc not realizing that found is a byvalue type and therefore will never be
interpreted as a varlena type.

Discussion: http://postgr.es/m/3prdb6hkep3duglhsujrn52bkvnlkvhc54fzvph2emrsm4vodl@77yy6j4hkemb
Discussion: http://postgr.es/m/20230316172818.x6375uvheom3ibt2%40awork3.anarazel.de
Discussion: http://postgr.es/m/20240207203138.sknifhlppdtgtxnk%40awork3.anarazel.de
src/pl/plpgsql/src/pl_exec.c