summaryrefslogtreecommitdiff
path: root/src/bin/psql
diff options
context:
space:
mode:
authorPeter Eisentraut2012-03-21 21:30:14 +0000
committerPeter Eisentraut2012-03-21 21:33:10 +0000
commit0e85abd658738db9ea183c133c89c3c94ee37dae (patch)
tree54ef3bd66cfb7ccee3bc3f1989a21706703a48da /src/bin/psql
parent621eb156f159d4979193939902f49ea597972a7d (diff)
Clean up compiler warnings from unused variables with asserts disabled
For those variables only used when asserts are enabled, use a new macro PG_USED_FOR_ASSERTS_ONLY, which expands to __attribute__((unused)) when asserts are not enabled.
Diffstat (limited to 'src/bin/psql')
-rw-r--r--src/bin/psql/psqlscan.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/psqlscan.l b/src/bin/psql/psqlscan.l
index a27bcd1ba73..1208c8f475c 100644
--- a/src/bin/psql/psqlscan.l
+++ b/src/bin/psql/psqlscan.l
@@ -1474,7 +1474,7 @@ psql_scan_slash_option(PsqlScanState state,
bool semicolon)
{
PQExpBufferData mybuf;
- int lexresult;
+ int lexresult PG_USED_FOR_ASSERTS_ONLY;
char local_quote;
/* Must be scanning already */