diff --git a/src/emu/inptport.c b/src/emu/inptport.c index 269147fe077..799373c9742 100644 --- a/src/emu/inptport.c +++ b/src/emu/inptport.c @@ -628,7 +628,7 @@ INLINE const char *get_port_tag(const input_port_config *port, char *tempbuffer) buffer -------------------------------------------------*/ -INLINE void *error_buf_append(char *errorbuf, int errorbuflen, const char *format, ...) +INLINE void* ATTR_PRINTF(3,4) error_buf_append(char *errorbuf, int errorbuflen, const char *format, ...) { int curlen = (errorbuf != NULL) ? strlen(errorbuf) : 0; int bytesleft = errorbuflen - curlen; diff --git a/src/emu/sound/rf5c68.c b/src/emu/sound/rf5c68.c index a5c6023167a..cc136017a83 100644 --- a/src/emu/sound/rf5c68.c +++ b/src/emu/sound/rf5c68.c @@ -126,7 +126,6 @@ static SND_START( rf5c68 ) /* allocate memory for the chip */ struct rf5c68pcm *chip = auto_malloc(sizeof(*chip)); memset(chip, 0, sizeof(*chip)); - memset(chip->data, 0xff, sizeof(chip->data)); /* allocate the stream */ chip->stream = stream_create(device, 0, 2, clock / 384, chip, rf5c68_update);