From 609209d031f1f8a90ed956318a55174bdec0d989 Mon Sep 17 00:00:00 2001 From: Peter Olsson Date: Sat, 1 Feb 2014 12:04:26 +0100 Subject: [PATCH] Tweaks to silence some compiler warnings on Windows --- src/mod/applications/mod_commands/mod_commands.c | 2 +- src/mod/applications/mod_fifo/mod_fifo.c | 2 +- src/mod/codecs/mod_opus/mod_opus.2012.vcxproj | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 6869e51436..63e6376c08 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -2950,7 +2950,7 @@ SWITCH_STANDARD_API(uuid_set_media_stats) return SWITCH_STATUS_SUCCESS; } -#define add_stat(_i, _s) cJSON_AddItemToObject(jstats, _s, cJSON_CreateNumber(_i)) +#define add_stat(_i, _s) cJSON_AddItemToObject(jstats, _s, cJSON_CreateNumber(((double)_i))) static void jsonify_stats(cJSON *json, const char *name, switch_rtp_stats_t *stats) { diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index 039f8776da..5aa3c643e8 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -1756,7 +1756,7 @@ static void *SWITCH_THREAD_FUNC o_thread_run(switch_thread_t *thread, void *obj) sql = switch_mprintf("update fifo_outbound set ring_count=ring_count-1, " "outbound_fail_count=outbound_fail_count+1, next_avail=%ld + lag + 1 where uuid='%q'", - (long) switch_epoch_time_now(NULL) + node->retry_delay, h->uuid); + (long) switch_epoch_time_now(NULL) + (node ? node->retry_delay : 0), h->uuid); fifo_execute_sql_queued(&sql, SWITCH_TRUE, SWITCH_TRUE); if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, FIFO_EVENT) == SWITCH_STATUS_SUCCESS) { diff --git a/src/mod/codecs/mod_opus/mod_opus.2012.vcxproj b/src/mod/codecs/mod_opus/mod_opus.2012.vcxproj index 7921694c6b..097abe74ce 100644 --- a/src/mod/codecs/mod_opus/mod_opus.2012.vcxproj +++ b/src/mod/codecs/mod_opus/mod_opus.2012.vcxproj @@ -1,4 +1,4 @@ - + @@ -73,6 +73,7 @@ ..\..\..\..\libs\opus-1.1\include;%(AdditionalIncludeDirectories) + 6053;6340;6246;6011;6387;%(DisableSpecificWarnings) false @@ -88,6 +89,7 @@ ..\..\..\..\libs\opus-1.1\include;%(AdditionalIncludeDirectories) + 6053;6340;6246;6011;6387;%(DisableSpecificWarnings) false @@ -101,6 +103,7 @@ ..\..\..\..\libs\opus-1.1\include;%(AdditionalIncludeDirectories) + 6053;6340;6246;6011;6387;%(DisableSpecificWarnings) false @@ -116,6 +119,7 @@ ..\..\..\..\libs\opus-1.1\include;%(AdditionalIncludeDirectories) + 6053;6340;6246;6011;6387;%(DisableSpecificWarnings) false @@ -153,4 +157,4 @@ - + \ No newline at end of file