diff options
author | Nick Clifton <nickc@redhat.com> | 2016-06-13 14:22:21 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-06-13 14:22:21 +0100 |
commit | e46dd0f46b9a2ac2b07343b91c447620ede47d26 (patch) | |
tree | 64979a865fd09b7c32ee1ffdb70c2fb69ac20b72 /gdb | |
parent | 0a8be2fe269b769c01b0daa1b967eba51dea4af5 (diff) | |
download | gdb-e46dd0f46b9a2ac2b07343b91c447620ede47d26.zip gdb-e46dd0f46b9a2ac2b07343b91c447620ede47d26.tar.gz gdb-e46dd0f46b9a2ac2b07343b91c447620ede47d26.tar.bz2 |
Fix compile time warning about a redundant comparison in an assertion statement.
* gdbtypes.c (replace_type): Fix assertion.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 335476b..1bd309f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-06-13 Nick Clifton <nickc@redhat.com> + + * gdbtypes.c (replace_type): Fix assertion. + 2016-06-10 Tom Tromey <tom@tromey.com> * gdbtypes.c (arch_type, arch_integer_type, arch_character_type) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 48f2cd3..0421cc5 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -756,7 +756,7 @@ replace_type (struct type *ntype, struct type *type) the assignment of one type's main type structure to the other will produce a type with references to objects (names; field lists; etc.) allocated on an objfile other than its own. */ - gdb_assert (TYPE_OBJFILE (ntype) == TYPE_OBJFILE (ntype)); + gdb_assert (TYPE_OBJFILE (ntype) == TYPE_OBJFILE (type)); *TYPE_MAIN_TYPE (ntype) = *TYPE_MAIN_TYPE (type); |