This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb/binutils-2_28-branch] Fix compile time warning about pointer comparison.
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 17 May 2017 23:55:41 -0000
- Subject: [binutils-gdb/binutils-2_28-branch] Fix compile time warning about pointer comparison.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1663acb165d6f3f17a21750e1b1140005d5a25f0
commit 1663acb165d6f3f17a21750e1b1140005d5a25f0
Author: Alan Modra <amodra@gmail.com>
Date: Thu May 18 09:07:26 2017 +0930
Fix compile time warning about pointer comparison.
PR 21034
* stabs.c (parse_stab_members): Fix thinko checking for g++
version 1 stabs information.
Diff:
---
binutils/ChangeLog | 8 ++++++++
binutils/stabs.c | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index f21867f..431822a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,11 @@
+2017-05-18 Alan Modra <amodra@gmail.com>
+
+ Apply from master
+ 2017-01-10 Nick Clifton <nickc@redhat.com>
+ PR 21034
+ * stabs.c (parse_stab_members): Fix thinko checking for g++
+ version 1 stabs information.
+
2017-03-02 Tristan Gingold <gingold@adacore.com>
* configure: Regenerate.
diff --git a/binutils/stabs.c b/binutils/stabs.c
index f5c5d2d..d3fc4af 100644
--- a/binutils/stabs.c
+++ b/binutils/stabs.c
@@ -2702,7 +2702,7 @@ parse_stab_members (void *dhandle, struct stab_handle *info,
++*pp;
voffset &= 0x7fffffff;
- if (**pp == ';' || *pp == '\0')
+ if (**pp == ';' || **pp == '\0')
{
/* Must be g++ version 1. */
context = DEBUG_TYPE_NULL;