From: Andrew Dunstan Date: Mon, 28 Sep 2015 22:29:20 +0000 (-0400) Subject: Fix compiler warning about unused function in non-readline case. X-Git-Tag: REL9_0_23~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47ae6bc5a9fead2c6b52ed861ad84f605b43a858;p=thirdparty%2Fpostgresql.git Fix compiler warning about unused function in non-readline case. Backpatch to all live branches to keep the code in sync. --- diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c index 02a0aaaf81e..77ea6b70aec 100644 --- a/src/bin/psql/input.c +++ b/src/bin/psql/input.c @@ -381,10 +381,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; /* @@ -449,10 +449,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 + /*