From 4653cd967eed3dcb77dce06c6dfebf708479dea1 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 18 Aug 2026 10:52:24 +0200 Subject: [PATCH 08/11] Fix some -Wcast-qual warnings [bufpage] Adding a const qualifier inside the macro avoids possible warnings about casting away const. The result type of the macro is not affected. Currently, PageGetTempPageCopySpecial() is the only caller affected by this. --- src/include/storage/bufpage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.h index 634e1e49ee5..713b6222286 100644 --- a/src/include/storage/bufpage.h +++ b/src/include/storage/bufpage.h @@ -364,7 +364,7 @@ PageValidateSpecialPointer(const PageData *page) #define PageGetSpecialPointer(page) \ ( \ PageValidateSpecialPointer(page), \ - ((page) + ((PageHeader) (page))->pd_special) \ + ((page) + ((const PageHeaderData *) (page))->pd_special) \ ) /* -- 2.55.0