Silence more compiler warnings

This commit is contained in:
Peter Olsson committed 2014-01-23 12:25:15 +01:00
1 parent 160a2b9362
commit 93696934b2
32 files changed
+74 -50

No files matched your search

@@ -1373,7 +1373,7 @@ SWITCH_STANDARD_API(expand_function)
{
char *expanded;
char *dup;
char *arg;
char *arg = NULL;
char *mycmd;
switch_status_t status;
const char *p;
@@ -4019,7 +4019,7 @@ static void member_add_file_data(conference_member_t *member, int16_t *data, swi
switch_change_sln_volume(file_frame, (uint32_t)file_sample_len, member->volume_out_level);
}
for (i = 0; i < file_sample_len; i++) {
for (i = 0; i < (int)file_sample_len; i++) {
if (member->fnode->mux) {
sample = data[i] + file_frame[i];
switch_normalize_to_16bit(sample);
@@ -8417,7 +8417,7 @@ SWITCH_STANDARD_APP(conference_function)
}
/* wait for them if neccessary */
if (strlen(pin_buf) < maxpin) {
if ((int)strlen(pin_buf) < maxpin) {
char *buf = pin_buf + strlen(pin_buf);
char term = '\0';
+1 -1
View File
@@ -583,7 +583,7 @@ http_sendfile_app_done:
#define HTTP_SENDFILE_SYNTAX "<url> <filenameParamName=filepath> [nopost|postparam1=foo&postparam2=bar... [event|stream|both|none [identifier ]]]"
SWITCH_STANDARD_API(http_sendfile_function)
{
switch_status_t status;
switch_status_t status = SWITCH_STATUS_FALSE;
switch_bool_t new_memory_pool = SWITCH_FALSE;
char *argv[10] = { 0 }, *argv2[10] = { 0 };
int argc = 0, argc2 = 0;
+1 -1
View File
@@ -130,7 +130,7 @@ void dec_serno(void)
SWITCH_STANDARD_APP(bcast_function)
{
switch_channel_t *channel = switch_core_session_get_channel(session);
switch_socket_t *socket, *polycom_socket = NULL;
switch_socket_t *socket = NULL, *polycom_socket = NULL;
switch_sockaddr_t *audio_addr = NULL, *control_packet_addr = NULL, *polycom_addr = NULL, *local_addr = NULL;
switch_frame_t *read_frame = NULL;
switch_status_t status;
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
@@ -68,6 +68,10 @@
<PropertyGroup>
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<CodeAnalysisRuleSet>NativeMinimumRules.ruleset</CodeAnalysisRuleSet>
<RunCodeAnalysis>false</RunCodeAnalysis>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -101,7 +105,7 @@
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader>
</PrecompiledHeader>
<EnablePREfast>true</EnablePREfast>
<EnablePREfast>false</EnablePREfast>
</ClCompile>
<Link>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
@@ -123,7 +123,7 @@
</Link>
<ClCompile>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<DisableSpecificWarnings>4706;4306;4996;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<DisableSpecificWarnings>4389;4706;4306;4996;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<EnablePREfast>false</EnablePREfast>
</ClCompile>
</ItemDefinitionGroup>
+1 -1
View File
@@ -266,7 +266,7 @@ SWITCH_LIMIT_RESET(limit_reset_redis)
const char *key = uuids[i] + hostnamelen;
char *value;
if (strlen(uuids[i]) <= hostnamelen) {
if ((int)strlen(uuids[i]) <= hostnamelen) {
continue; /* Sanity check */
}