diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2015-09-28 18:29:20 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2015-09-28 18:35:06 -0400 |
commit | c4e6d506c6b028d6ccdac4e2a23b3484fba6c39e (patch) | |
tree | 61d4a97a8c39e2fc8593a863d6f37991c1570f37 /src | |
parent | aea76d128ad85f38aa0f4255fb9d46d95b835755 (diff) | |
download | postgresql-c4e6d506c6b028d6ccdac4e2a23b3484fba6c39e.tar.gz postgresql-c4e6d506c6b028d6ccdac4e2a23b3484fba6c39e.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.c | 6 |
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 + /* |