aboutsummaryrefslogtreecommitdiff
path: root/gprof/source.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@sourceware.org>2016-10-06 12:51:47 +0100
committerNick Clifton <nickc@redhat.com>2016-10-06 12:51:47 +0100
commit6bd7996d3d45d9dfcbf695ec680fb43b5275ee89 (patch)
tree586366c37a7b59cdfd7030ac4bc117c6f2b9d6b8 /gprof/source.c
parent3d3424e9a8d6ad56160b98bf6e223c0346164468 (diff)
downloadgdb-6bd7996d3d45d9dfcbf695ec680fb43b5275ee89.zip
gdb-6bd7996d3d45d9dfcbf695ec680fb43b5275ee89.tar.gz
gdb-6bd7996d3d45d9dfcbf695ec680fb43b5275ee89.tar.bz2
Remove redundant assignment in gprof.
PR gprof/20656 * source.c (annotate_source): Delete redundant assignment to new_line.
Diffstat (limited to 'gprof/source.c')
-rw-r--r--gprof/source.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gprof/source.c b/gprof/source.c
index 6a977a6..335cda8 100644
--- a/gprof/source.c
+++ b/gprof/source.c
@@ -250,7 +250,6 @@ annotate_source (Source_File *sf, unsigned int max_width,
(*annote) (annotation, max_width, line_num, arg);
fputs (annotation, ofp);
++line_num;
- new_line = FALSE;
}
new_line = (buf[i] == '\n');