]> granicus.if.org Git - postgresql/commitdiff
Fix compiler warning about unused function in non-readline case.
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 28 Sep 2015 22:29:20 +0000 (18:29 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 28 Sep 2015 22:32:27 +0000 (18:32 -0400)
Backpatch to all live branches to keep the code in sync.

src/bin/psql/input.c

index 02a0aaaf81e4c0a79ea75f22fca98bad802a33e5..77ea6b70aec07d7878529ed089cee8f518e0a6ac 100644 (file)
@@ -381,10 +381,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;
 
        /*
@@ -449,10 +449,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
+
 
 
 /*