1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +03:00

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.
This commit is contained in:
Tom Lane
2016-08-23 23:21:10 -04:00
parent 32909a57f9
commit 71e006f031
2 changed files with 2 additions and 2 deletions

View File

@ -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;