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:34:31 -0400 |
commit | 729d0056b42a512648e49daa727e5fe77d0cfeeb (patch) | |
tree | 2ab3adc3c6dea609a2087eb129b7060d9df3e077 | |
parent | 1bcc9e60a7d44f6b824f4bd9c73a035af2572794 (diff) |
Fix compiler warning about unused function in non-readline case.
Backpatch to all live branches to keep the code in sync.
-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 68fb8cb13ed..f08ed83d68e 100644 --- a/src/bin/psql/input.c +++ b/src/bin/psql/input.c @@ -382,10 +382,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; /* @@ -450,10 +450,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 + /* |