Fix compile time warning about a redundant comparison in an assertion statement.
* gdbtypes.c (replace_type): Fix assertion.
This commit is contained in:
parent
0a8be2fe26
commit
e46dd0f46b
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
2016-06-10 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
|
* gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
|
||||||
|
|
|
@ -756,7 +756,7 @@ replace_type (struct type *ntype, struct type *type)
|
||||||
the assignment of one type's main type structure to the other
|
the assignment of one type's main type structure to the other
|
||||||
will produce a type with references to objects (names; field
|
will produce a type with references to objects (names; field
|
||||||
lists; etc.) allocated on an objfile other than its own. */
|
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);
|
*TYPE_MAIN_TYPE (ntype) = *TYPE_MAIN_TYPE (type);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue