Skip to content
Snippets Groups Projects
Commit 5c0b7424 authored by Tom Lane's avatar Tom Lane
Browse files

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.
parent fcf1ed48
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -115,7 +115,7 @@ test_indoption(Oid relid, int attno, bool guard,
bool *res)
{
HeapTuple tuple;
Form_pg_index rd_index;
Form_pg_index rd_index PG_USED_FOR_ASSERTS_ONLY;
Datum datum;
bool isnull;
int2vector *indoption;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment