mirror of
https://github.com/postgres/postgres.git
synced 2026-04-07 02:06:01 -04:00
Fix compiler warning about unused function in non-readline case.
Backpatch to all live branches to keep the code in sync.
This commit is contained in:
parent
aea76d128a
commit
c4e6d506c6
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue