summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/histfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/readline/histfile.c')
-rw-r--r--cmd-line-utils/readline/histfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-line-utils/readline/histfile.c b/cmd-line-utils/readline/histfile.c
index cbd367542ce..1a6d69b6684 100644
--- a/cmd-line-utils/readline/histfile.c
+++ b/cmd-line-utils/readline/histfile.c
@@ -402,6 +402,7 @@ history_truncate_file (fname, lines)
if (bp > buffer && ((file = open (filename, O_WRONLY|O_TRUNC|O_BINARY, 0600)) != -1))
{
bytes_written= write (file, bp, chars_read - (bp - buffer));
+ (void) bytes_written;
#if defined (__BEOS__)
/* BeOS ignores O_TRUNC. */