OSDN Git Service

sim: fix unused cpu_nr warnings
authorvapier <vapier>
Wed, 31 Mar 2010 05:39:38 +0000 (05:39 +0000)
committervapier <vapier>
Wed, 31 Mar 2010 05:39:38 +0000 (05:39 +0000)
commit339af145c31094f8b0155e18bea386dabb9f435d
treed82fbec87b9ae21672951c96362e936e87181cdf
parentaad13219b37c207d45b616cc3a2aabd05356bb90
sim: fix unused cpu_nr warnings

The trace_option_handler() function only uses cpu_nr when the
SIM_HAVE_ADDR_RANGE define is enabled.  So move the decl down
to where the code exists.  Otherwise GCC warns:
sim-trace.c: In function 'trace_option_handler':
sim-trace.c:236: warning: unused variable 'cpu_nr'
sim/common/ChangeLog
sim/common/sim-trace.c