diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-08-23 15:46:20 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-08-23 15:46:20 +0000 |
commit | 38359266c53bd84073399f8b18f9893063ffea12 (patch) | |
tree | cd8f890dcc2b5502b60fbae0bfcaaef39201bca4 /usr.bin | |
parent | 5f0230cb167c3d07ba1c246bb4dbd27034572e65 (diff) | |
download | src-38359266c53bd84073399f8b18f9893063ffea12.tar.gz src-38359266c53bd84073399f8b18f9893063ffea12.zip |
indent(1): remove dead assignments.
Taken from: Piotr Sephaniak
Notes
Notes:
svn path=/head/; revision=304684
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/indent/indent.c | 1 | ||||
-rw-r--r-- | usr.bin/indent/io.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c index dbf53b66e484..d11270caba27 100644 --- a/usr.bin/indent/indent.c +++ b/usr.bin/indent/indent.c @@ -1161,7 +1161,6 @@ check_type: case comment: /* we have gotten a / followed by * this is a biggie */ if (flushed_nl) { /* we should force a broken line here */ - flushed_nl = false; dump_line(); ps.want_blank = false; /* dont insert blank at line start */ force_nl = false; diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c index b2116b5a8fca..1f662a7d6c82 100644 --- a/usr.bin/indent/io.c +++ b/usr.bin/indent/io.c @@ -242,7 +242,7 @@ dump_line(void) } while (e_com > com_st && isspace(e_com[-1])) e_com--; - cur_col = pad_output(cur_col, target); + (void)pad_output(cur_col, target); fwrite(com_st, e_com - com_st, 1, output); ps.comment_delta = ps.n_comment_delta; ++ps.com_lines; /* count lines with comments */ |