sim: fix unused profile_print_addr_ranges warning

The profile_print_addr_ranges() function is only used when
SIM_HAVE_ADDR_RANGE is defined, so #ifdef it accordingly.
This commit is contained in:
Mike Frysinger 2010-03-30 20:35:39 +00:00
parent 59db87ade3
commit 739dfd28c3
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* sim-profile.c (profile_print_addr_ranges): Wrap with the
SIM_HAVE_ADDR_RANGE define.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* dv-glue.c (hw_glue_ports): Swap static and const.

View File

@ -1051,6 +1051,7 @@ profile_print_speed (sim_cpu *cpu)
}
}
#ifdef SIM_HAVE_ADDR_RANGE
/* Print selected address ranges. */
static void
@ -1071,6 +1072,7 @@ profile_print_addr_ranges (sim_cpu *cpu)
sim_io_printf (sd, "\n");
}
}
#endif
/* Top level function to print all summary profile information.
It is [currently] intended that all such data is printed by this function.