summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2010-06-17 00:28:54 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2010-06-17 00:28:54 +0000
commit6e7f2af055e7aa01032919e3f5208bdde96f8407 (patch)
tree071a1a28142277baab5993570e49fced6d32a53e /src
parentd6a9271febdc20001eacba4908a5cc02cd914dea (diff)
Fixes for OS X PowerPC compile [R. Belmont]
Diffstat (limited to 'src')
-rw-r--r--src/emu/audit.c2
-rw-r--r--src/emu/clifront.c2
-rw-r--r--src/mame/machine/atarigen.c2
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);