Use pg_assume() to avoid compiler warning below exec_set_found()
Andres Freund <andres@anarazel.de>
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: https://postgr.es/m/3prdb6hkep3duglhsujrn52bkvnlkvhc54fzvph2emrsm4vodl@77yy6j4hkemb Discussion: https://postgr.es/m/20230316172818.x6375uvheom3ibt2%40awork3.anarazel.de Discussion: https://postgr.es/m/20240207203138.sknifhlppdtgtxnk%40awork3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpgsql/src/pl_exec.c | modified | +9 −0 |
Discussion
- gcc 13 warnings 18 messages · 2023-03-16 → 2024-07-15
- gcc 15 "array subscript 0" warning at level -O3 8 messages · 2025-04-25 → 2025-07-09
- pgsql: Add support event triggers on authenticated login 5 messages · 2023-10-16 → 2024-02-08