This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Remove redundant assignment in gprof.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 6 Oct 2016 11:52:32 -0000
- Subject: [binutils-gdb] Remove redundant assignment in gprof.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6bd7996d3d45d9dfcbf695ec680fb43b5275ee89
commit 6bd7996d3d45d9dfcbf695ec680fb43b5275ee89
Author: Tom Tromey <tromey@sourceware.org>
Date: Thu Oct 6 12:51:47 2016 +0100
Remove redundant assignment in gprof.
PR gprof/20656
* source.c (annotate_source): Delete redundant assignment to
new_line.
Diff:
---
gprof/ChangeLog | 6 ++++++
gprof/source.c | 1 -
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index a1e821c..52637ec 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,9 @@
+2016-10-06 Tom Tromey <tromey@sourceware.org>
+
+ PR gprof/20656
+ * source.c (annotate_source): Delete redundant assignment to
+ new_line.
+
2016-10-06 Alan Modra <amodra@gmail.com>
* gprof.c: Add missing fall through comments.
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');