Silence compiler warnings on clang 21
Peter Eisentraut <peter@eisentraut.org>
Silence compiler warnings on clang 21 Clang 21 shows some new compiler warnings, for example: warning: variable 'dstsize' is uninitialized when passed as a const pointer argument here [-Wuninitialized-const-pointer] The fix is to initialize the variables when they are defined. This is similar to, for example, the existing situation in gistKeyIsEQ(). Discussion: https://www.postgresql.org/message-id/flat/6604ad6e-5934-43ac-8590-15113d6ae4b1%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/toast_internals.c | modified | +1 −1 |
| src/backend/access/gist/gistutil.c | modified | +2 −2 |
Discussion
- new warnings with clang-21 / how const is Datum 3 messages · 2025-09-01 → 2025-09-08