Skip to content

Commit 47ae6bc

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 98d8c75 commit 47ae6bc

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
@@ -381,10 +381,10 @@ initializeInput(int flags)
381381
*
382382
* max_lines: if >= 0, limit history file to that many entries.
383383
*/
384+
#ifdef USE_READLINE
384385
static bool
385386
saveHistory(char *fname, int max_lines)
386387
{
387-
#ifdef USE_READLINE
388388
int errnum;
389389

390390
/*
@@ -449,10 +449,10 @@ saveHistory(char *fname, int max_lines)
449449
psql_error("could not save history to file \"%s\": %s\n",
450450
fname, strerror(errnum));
451451
}
452-
#endif
453-
454452
return false;
455453
}
454+
#endif
455+
456456

457457

458458
/*

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