aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/input.c
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:36:38 -0400
commit8a0aa686f41f68c03683a9e37ba783a20cf53a97 (patch)
treecf96c15019f8788b5c87e993c35fc0f1c00a999c /src/bin/psql/input.c
parent17f5831c8150349d22da2e88820b1be3d734315d (diff)
downloadpostgresql-8a0aa686f41f68c03683a9e37ba783a20cf53a97.tar.gz
postgresql-8a0aa686f41f68c03683a9e37ba783a20cf53a97.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/bin/psql/input.c')
-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 437fa4d663a..e3771040072 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
+
/*