From b680ffbfa62ca14d0dc233798e540395f0f4a3ee Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 11 Sep 2016 16:47:39 +0200 Subject: [PATCH] Fix CXX_BUILD --- audio/drivers/pulse.c | 4 +++- verbosity.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/audio/drivers/pulse.c b/audio/drivers/pulse.c index 928da3f0ab..dee3c5c108 100644 --- a/audio/drivers/pulse.c +++ b/audio/drivers/pulse.c @@ -146,11 +146,13 @@ static void buffer_attr_cb(pa_stream *s, void *data) static void *pulse_init(const char *device, unsigned rate, unsigned latency) { - pa_sample_spec spec = {0}; + pa_sample_spec spec; pa_buffer_attr buffer_attr = {0}; const pa_buffer_attr *server_attr = NULL; pa_t *pa = (pa_t*)calloc(1, sizeof(*pa)); + memset(&spec, 0, sizeof(spec)); + if (!pa) goto error; diff --git a/verbosity.c b/verbosity.c index b6d7eba078..1525fb1576 100644 --- a/verbosity.c +++ b/verbosity.c @@ -143,7 +143,7 @@ static aslclient asl_client; #else #ifdef HAVE_FILE_LOGGER - fp = retro_main_log_file(); + fp = (FILE*)retro_main_log_file(); #else fp = stderr; #endif