diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-23 23:21:10 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-23 23:21:10 -0400 |
commit | 71e006f031310f77ab72881c47a7d8f41df748bb (patch) | |
tree | 3f8471b79e7c54df46c1ca526232425f3050487c /src/backend/access/gist/gistutil.c | |
parent | 32909a57f9fb131eab8971a6d9845b55bbcb9091 (diff) | |
download | postgresql-71e006f031310f77ab72881c47a7d8f41df748bb.tar.gz |
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.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
-rw-r--r-- | src/backend/access/gist/gistutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/gist/gistutil.c b/src/backend/access/gist/gistutil.c index 26d4a64694..887c58b71c 100644 --- a/src/backend/access/gist/gistutil.c +++ b/src/backend/access/gist/gistutil.c @@ -852,7 +852,7 @@ gistproperty(Oid index_oid, int attno, bool *res, bool *isnull) { HeapTuple tuple; - Form_pg_index rd_index; + Form_pg_index rd_index PG_USED_FOR_ASSERTS_ONLY; Form_pg_opclass rd_opclass; Datum datum; bool disnull; |