Skip to content

Commit 71e006f

Browse files
committed
Suppress compiler warnings in non-cassert builds.
With Asserts off, these variables are set but never used, resulting in warnings from pickier compilers. Fix that with our standard solution. Per report from Jeff Janes.
1 parent 32909a5 commit 71e006f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/access/gist/gistutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ gistproperty(Oid index_oid, int attno,
852852
bool *res, bool *isnull)
853853
{
854854
HeapTuple tuple;
855-
Form_pg_index rd_index;
855+
Form_pg_index rd_index PG_USED_FOR_ASSERTS_ONLY;
856856
Form_pg_opclass rd_opclass;
857857
Datum datum;
858858
bool disnull;

src/backend/utils/adt/amutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test_indoption(Oid relid, int attno, bool guard,
115115
bool *res)
116116
{
117117
HeapTuple tuple;
118-
Form_pg_index rd_index;
118+
Form_pg_index rd_index PG_USED_FOR_ASSERTS_ONLY;
119119
Datum datum;
120120
bool isnull;
121121
int2vector *indoption;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy