summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-06-18 12:18:13 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-06-18 12:18:13 +0000
commit128dce80eb85d9ce949ea778fb60e394fcf884d7 (patch)
tree12cf40a97d71190d46f0ed4d3a087d4ea4b58ee2
parentd225d117bfd8a211c956804888dba1ed8f974857 (diff)
avoid -Wpointer-compare warning which broke build with clang 10
-rw-r--r--gnu/usr.bin/binutils-2.17/binutils/stabs.c2
-rw-r--r--gnu/usr.bin/binutils/binutils/stabs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils-2.17/binutils/stabs.c b/gnu/usr.bin/binutils-2.17/binutils/stabs.c
index 879a3e2c7a7..b40d7ef629b 100644
--- a/gnu/usr.bin/binutils-2.17/binutils/stabs.c
+++ b/gnu/usr.bin/binutils-2.17/binutils/stabs.c
@@ -2670,7 +2670,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;
diff --git a/gnu/usr.bin/binutils/binutils/stabs.c b/gnu/usr.bin/binutils/binutils/stabs.c
index fed5c92da55..baaa4aff3fc 100644
--- a/gnu/usr.bin/binutils/binutils/stabs.c
+++ b/gnu/usr.bin/binutils/binutils/stabs.c
@@ -2668,7 +2668,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;