Content-Length: 274432 | pFad | http://github.com/postgres/postgres/commit/47ae6bc5a9fead2c6b52ed861ad84f605b43a858

05 Fix compiler warning about unused function in non-readline case. · postgres/postgres@47ae6bc · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgres/postgres/commit/47ae6bc5a9fead2c6b52ed861ad84f605b43a858

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy