Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80fa542
)
Fix compiler warning about unused function in non-readline case.
author
Andrew Dunstan
<andrew@dunslane.net>
Mon, 28 Sep 2015 22:29:20 +0000
(18:29 -0400)
committer
Andrew Dunstan
<andrew@dunslane.net>
Mon, 28 Sep 2015 22:31:59 +0000
(18:31 -0400)
Backpatch to all live branches to keep the code in sync.
src/bin/psql/input.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/input.c
b/src/bin/psql/input.c
index 4ca4f4b09654c7b1157f59bc83bf8740ebe0508d..832e81216efc8afe0a69415d436d49b729379b55 100644
(file)
--- a/
src/bin/psql/input.c
+++ b/
src/bin/psql/input.c
@@
-382,10
+382,10
@@
initializeInput(int flags)
*
* max_lines: if >= 0, limit history file to that many entries.
*/
+#ifdef USE_READLINE
static bool
saveHistory(char *fname, int max_lines)
{
-#ifdef USE_READLINE
int errnum;
/*
@@
-450,10
+450,10
@@
saveHistory(char *fname, int max_lines)
psql_error("could not save history to file \"%s\": %s\n",
fname, strerror(errnum));
}
-#endif
-
return false;
}
+#endif
+
/*