mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03: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
80fa542101
commit
a959db8acd
@ -382,10 +382,10 @@ initializeInput(int flags)
|
|||||||
*
|
*
|
||||||
* max_lines: if >= 0, limit history file to that many entries.
|
* max_lines: if >= 0, limit history file to that many entries.
|
||||||
*/
|
*/
|
||||||
|
#ifdef USE_READLINE
|
||||||
static bool
|
static bool
|
||||||
saveHistory(char *fname, int max_lines)
|
saveHistory(char *fname, int max_lines)
|
||||||
{
|
{
|
||||||
#ifdef USE_READLINE
|
|
||||||
int errnum;
|
int errnum;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -450,10 +450,10 @@ saveHistory(char *fname, int max_lines)
|
|||||||
psql_error("could not save history to file \"%s\": %s\n",
|
psql_error("could not save history to file \"%s\": %s\n",
|
||||||
fname, strerror(errnum));
|
fname, strerror(errnum));
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user