Skip to content

Commit 8a0aa68

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 17f5831 commit 8a0aa68

File tree

1 file changed

+3
-3
lines changed

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy