Skip to content

Commit c4e6d50

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 aea76d1 commit c4e6d50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/psql/input.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,10 @@ initializeInput(int flags)
378378
*
379379
* max_lines: if >= 0, limit history file to that many entries.
380380
*/
381+
#ifdef USE_READLINE
381382
static bool
382383
saveHistory(char *fname, int max_lines)
383384
{
384-
#ifdef USE_READLINE
385385
int errnum;
386386

387387
/*
@@ -446,10 +446,10 @@ saveHistory(char *fname, int max_lines)
446446
psql_error("could not save history to file \"%s\": %s\n",
447447
fname, strerror(errnum));
448448
}
449-
#endif
450-
451449
return false;
452450
}
451+
#endif
452+
453453

454454

455455
/*

0 commit comments

Comments
 (0)