diff options
| author | 2010-07-07 03:30:06 +0000 | |
|---|---|---|
| committer | 2010-07-07 03:30:06 +0000 | |
| commit | 6a315283c9b56f5cd5f76817c44ba7966561e8ad (patch) | |
| tree | cdfdb8ea9a247c1341e5de264c54976126483f0a /src/emu/debug/debugcmd.c | |
| parent | 4b978bec117896098cdff3540650c4fa8026cd83 (diff) | |
More loop initializers for PowerPC compile.
Diffstat (limited to 'src/emu/debug/debugcmd.c')
| -rw-r--r-- | src/emu/debug/debugcmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c index a21a67bca4c..c9bf9a5c255 100644 --- a/src/emu/debug/debugcmd.c +++ b/src/emu/debug/debugcmd.c @@ -534,7 +534,7 @@ int debug_command_parameter_cpu(running_machine *machine, const char *param, dev } /* if we got a valid one, return */ - device_execute_interface *exec; + device_execute_interface *exec = NULL; for (bool gotone = machine->m_devicelist.first(exec); gotone; gotone = exec->next(exec)) if (cpunum-- == 0) { @@ -972,7 +972,7 @@ static void execute_focus(running_machine *machine, int ref, int params, const c cpu->debug()->ignore(false); /* then loop over CPUs and set the ignore flags on all other CPUs */ - device_execute_interface *exec; + device_execute_interface *exec = NULL; for (bool gotone = machine->m_devicelist.first(exec); gotone; gotone = exec->next(exec)) if (&exec->device() != cpu) exec->device().debug()->ignore(true); @@ -992,7 +992,7 @@ static void execute_ignore(running_machine *machine, int ref, int params, const astring buffer; /* loop over all executable devices */ - device_execute_interface *exec; + device_execute_interface *exec = NULL; for (bool gotone = machine->m_devicelist.first(exec); gotone; gotone = exec->next(exec)) /* build up a comma-separated list */ @@ -1024,7 +1024,7 @@ static void execute_ignore(running_machine *machine, int ref, int params, const for (int paramnum = 0; paramnum < params; paramnum++) { /* make sure this isn't the last live CPU */ - device_execute_interface *exec; + device_execute_interface *exec = NULL; bool gotone; for (gotone = machine->m_devicelist.first(exec); gotone; gotone = exec->next(exec)) if (&exec->device() != devicelist[paramnum] && exec->device().debug()->observing()) @@ -1054,7 +1054,7 @@ static void execute_observe(running_machine *machine, int ref, int params, const astring buffer; /* loop over all executable devices */ - device_execute_interface *exec; + device_execute_interface *exec = NULL; for (bool gotone = machine->m_devicelist.first(exec); gotone; gotone = exec->next(exec)) /* build up a comma-separated list */ |
