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

Commit47ae6bc

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 parent98d8c75 commit47ae6bc

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+
#ifdefUSE_READLINE
384385
staticbool
385386
saveHistory(char*fname,intmax_lines)
386387
{
387-
#ifdefUSE_READLINE
388388
interrnum;
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)

[8]ページ先頭

©2009-2025 Movatter.jp