| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Silence warnings about unused global variables |
| Date: | 2026-09-22 18:02:23 |
| Message-ID: | E1x94ox-00000000nrt-1xl2@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Silence warnings about unused global variables
Similar to commit "Remove unused global variables", silence
-Wunused-but-set-global warnings from clang 23 (included in -Wall).
These are variables that are used in assert-enabled builds only, so
annotate them with PG_USED_FOR_ASSERTS_ONLY.
Branch
------
REL_18_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/b28c6c443e4001708e8f6d38f0868ac239452caa
Modified Files
--------------
src/backend/utils/cache/syscache.c | 2 +-
src/test/modules/test_resowner/test_resowner_many.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nathan Bossart | 2026-09-22 18:22:28 | pgsql: Convert PROC_HDR->startupBufferPinWaitBuf to an atomic variable. |
| Previous Message | Nathan Bossart | 2026-09-22 17:44:50 | pgsql: Convert ParallelBitmapHeapState->state to an atomic variable. |