Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a0aa68

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 parent17f5831 commit8a0aa68

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+
#ifdefUSE_READLINE
381382
staticbool
382383
saveHistory(char*fname,intmax_lines)
383384
{
384-
#ifdefUSE_READLINE
385385
interrnum;
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)

[8]ページ先頭

©2009-2025 Movatter.jp