mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user