8000 Fix compiler warning about unused function in non-readline case. · dingqipeng/postgres@729d005 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 729d005

Browse files
committed
Fix compiler warning about unused function in non-readline case.
Backpatch to all live branches to keep the code in sync.
1 parent 1bcc9e6 commit 729d005

File tree

1 file changed

+3
-3
lines changed

src/bin/psql/input.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,10 @@ initializeInput(int flags)
382382
*
383383
* max_lines: if >= 0, limit history file to that many entries.
384384
*/
385+
#ifdef USE_READLINE
385386
static bool
386387
saveHistory(char *fname, int max_lines)
387388
{
388-
#ifdef USE_READLINE
389389
int errnum;
390390

391391
/*
@@ -450,10 +450,10 @@ saveHistory(char *fname, int max_lines)
450450
psql_error("could not save history to file \"%s\": %s\n",
451451
fname, strerror(errnum));
452452
}
453-
#endif
454-
455453
return false;
456454
}
455+
#endif
456+
457457

458458

459459
/*

0 commit comments

Comments
 (0)
0