Remove redundant assignment in gprof.
authorTom Tromey <tromey@sourceware.org>
Thu, 6 Oct 2016 11:51:47 +0000 (12:51 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 6 Oct 2016 11:51:47 +0000 (12:51 +0100)
PR gprof/20656
* source.c (annotate_source): Delete redundant assignment to
new_line.

gprof/ChangeLog
gprof/source.c

index a1e821c12d8c125957611f2869b7411f1c2b66de..52637eca0f9623e63818552c830a28b2fcec5f72 100644 (file)
@@ -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.
index 6a977a6fa8ed05d1c352fe72e53e488cc75ba98a..335cda8019db081aaf2ba71682721a68c0363aa6 100644 (file)
@@ -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');