Add cast in nto-tdep.c

gdb/ChangeLog:

	* nto-tdep.c (nto_inferior_data): Add cast.
This commit is contained in:
Simon Marchi 2015-10-22 11:58:38 -04:00
parent c72f45d16c
commit fb70bc1a74
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
* nto-tdep.c (nto_inferior_data): Add cast.
2015-10-22 Pedro Alves <palves@redhat.com>
* windows-nat.c (do_initial_windows_stuff): Rewrite loop using

View File

@ -552,7 +552,8 @@ nto_inferior_data (struct inferior *const inferior)
gdb_assert (inf != NULL);
inf_data = inferior_data (inf, nto_inferior_data_reg);
inf_data
= (struct nto_inferior_data *) inferior_data (inf, nto_inferior_data_reg);
if (inf_data == NULL)
{
set_inferior_data (inf, nto_inferior_data_reg,