mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08: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
98d8c75f9f
commit
47ae6bc5a9
@ -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
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user