From: Tom Tromey Date: Thu, 6 Oct 2016 11:51:47 +0000 (+0100) Subject: Remove redundant assignment in gprof. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bd7996d3d45d9dfcbf695ec680fb43b5275ee89;p=binutils-gdb.git Remove redundant assignment in gprof. PR gprof/20656 * source.c (annotate_source): Delete redundant assignment to new_line. --- diff --git a/gprof/ChangeLog b/gprof/ChangeLog index a1e821c12d8..52637eca0f9 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,9 @@ +2016-10-06 Tom Tromey + + PR gprof/20656 + * source.c (annotate_source): Delete redundant assignment to + new_line. + 2016-10-06 Alan Modra * gprof.c: Add missing fall through comments. diff --git a/gprof/source.c b/gprof/source.c index 6a977a6fa8e..335cda8019d 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');