aboutsummaryrefslogtreecommitdiff
path: root/bfd/rs6000-core.c
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-03-09 15:58:39 +0000
committerNick Clifton <nickc@redhat.com>2017-03-09 16:01:06 +0000
commitf03265d9cda1f5f8df238efa9b7a20330e5711f1 (patch)
tree14d50fa47f0bc4fc09835e1cf59e80b0d16cf436 /bfd/rs6000-core.c
parentc1fe188b154a4e81372629316be3d3a7820efdac (diff)
downloadfsf-binutils-gdb-f03265d9cda1f5f8df238efa9b7a20330e5711f1.zip
fsf-binutils-gdb-f03265d9cda1f5f8df238efa9b7a20330e5711f1.tar.gz
fsf-binutils-gdb-f03265d9cda1f5f8df238efa9b7a20330e5711f1.tar.bz2
Fix compile time warnings about using possibly uninitialised variables in rs6000-core.c.
* rs6000-core.c (CORE_NEW): Simplify macro when AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
Diffstat (limited to 'bfd/rs6000-core.c')
-rw-r--r--bfd/rs6000-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/rs6000-core.c b/bfd/rs6000-core.c
index 0e66cc3..6951e67 100644
--- a/bfd/rs6000-core.c
+++ b/bfd/rs6000-core.c
@@ -135,9 +135,9 @@ typedef union
#ifdef AIX_CORE_DUMPX_CORE
# ifndef BFD64
-# define CORE_NEW(c) (!(c).old.c_entries)
+# define CORE_NEW(c) (!(c).old.c_entries)
# else
-# define CORE_NEW(c) (!(c).new_dump.c_entries)
+# define CORE_NEW(c) 1
# endif
#else
# define CORE_NEW(c) 0