From 6e7f2af055e7aa01032919e3f5208bdde96f8407 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Thu, 17 Jun 2010 00:28:54 +0000 Subject: Fixes for OS X PowerPC compile [R. Belmont] --- src/emu/audit.c | 2 +- src/emu/clifront.c | 2 +- src/mame/machine/atarigen.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emu/audit.c b/src/emu/audit.c index 526a50f70a8..3f0c9f261cb 100644 --- a/src/emu/audit.c +++ b/src/emu/audit.c @@ -152,7 +152,7 @@ int audit_samples(core_options *options, const game_driver *gamedrv, audit_recor int sampnum; /* count the number of sample records attached to this driver */ - const device_config_sound_interface *sound; + const device_config_sound_interface *sound = NULL; for (bool gotone = config->devicelist.first(sound); gotone; gotone = sound->next(sound)) if (sound->devconfig().type() == SOUND_SAMPLES) { diff --git a/src/emu/clifront.c b/src/emu/clifront.c index dae94680f7f..53a09fb44ea 100644 --- a/src/emu/clifront.c +++ b/src/emu/clifront.c @@ -622,7 +622,7 @@ int cli_info_listsamples(core_options *options, const char *gamename) if (mame_strwildcmp(gamename, drivers[drvindex]->name) == 0) { machine_config *config = machine_config_alloc(drivers[drvindex]->machine_config); - const device_config_sound_interface *sound; + const device_config_sound_interface *sound = NULL; /* find samples interfaces */ for (bool gotone = config->devicelist.first(sound); gotone; gotone = sound->next(sound)) diff --git a/src/mame/machine/atarigen.c b/src/mame/machine/atarigen.c index 8f8a5cc39a6..52e92e75cdb 100644 --- a/src/mame/machine/atarigen.c +++ b/src/mame/machine/atarigen.c @@ -875,7 +875,7 @@ static TIMER_CALLBACK( delayed_6502_sound_w ) void atarigen_set_vol(running_machine *machine, int volume, device_type type) { - device_sound_interface *sound; + device_sound_interface *sound = NULL; for (bool gotone = machine->devicelist.first(sound); gotone; gotone = sound->next(sound)) if (sound->device().type() == type) sound_set_output_gain(*sound, ALL_OUTPUTS, volume / 100.0); -- cgit v1.2.3