aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-09-28 18:29:20 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-09-28 18:31:28 -0400
commit84008295068c798b4a8623ed9d7873d277ade25c (patch)
treeff79b25f1cc5524dc2c8a420c0935d862580a2dd /src
parent67d0f7a379481a4171c65e4001071f8838d16a67 (diff)
downloadpostgresql-84008295068c798b4a8623ed9d7873d277ade25c.tar.gz
postgresql-84008295068c798b4a8623ed9d7873d277ade25c.zip
Fix compiler warning about unused function in non-readline case.
Backpatch to all live branches to keep the code in sync.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c
index 94d587f2faa..0605fb56230 100644
--- a/src/bin/psql/input.c
+++ b/src/bin/psql/input.c
@@ -378,10 +378,10 @@ initializeInput(int flags)
*
* max_lines: if >= 0, limit history file to that many entries.
*/
+#ifdef USE_READLINE
static bool
saveHistory(char *fname, int max_lines)
{
-#ifdef USE_READLINE
int errnum;
/*
@@ -446,10 +446,10 @@ saveHistory(char *fname, int max_lines)
psql_error("could not save history to file \"%s\": %s\n",
fname, strerror(errnum));
}
-#endif
-
return false;
}
+#endif
+
/*