Author: mikej Date: Tue Oct 17 17:56:45 2006 New Revision: 3072 Modified: freeswitch/trunk/libs/libdingaling/libdingaling.vcproj freeswitch/trunk/libs/libdingaling/src/libdingaling.c Log: up the warning level. Modified: freeswitch/trunk/libs/libdingaling/libdingaling.vcproj ============================================================================== --- freeswitch/trunk/libs/libdingaling/libdingaling.vcproj (original) +++ freeswitch/trunk/libs/libdingaling/libdingaling.vcproj Tue Oct 17 17:56:45 2006 @@ -46,9 +46,10 @@ BasicRuntimeChecks="3" RuntimeLibrary="3" UsePrecompiledHeader="0" - WarningLevel="3" + WarningLevel="4" Detect64BitPortabilityProblems="true" DebugInformationFormat="3" + DisableSpecificWarnings="4100;4706" /> <Tool Name="VCManagedResourceCompilerTool" @@ -107,9 +108,10 @@ PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE" RuntimeLibrary="2" UsePrecompiledHeader="0" - WarningLevel="3" + WarningLevel="4" Detect64BitPortabilityProblems="true" DebugInformationFormat="3" + DisableSpecificWarnings="4100" /> <Tool Name="VCManagedResourceCompilerTool" @@ -170,9 +172,10 @@ BasicRuntimeChecks="3" RuntimeLibrary="3" UsePrecompiledHeader="0" - WarningLevel="3" + WarningLevel="4" Detect64BitPortabilityProblems="true" DebugInformationFormat="4" + DisableSpecificWarnings="4100" /> <Tool Name="VCManagedResourceCompilerTool" @@ -247,9 +250,10 @@ PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC" RuntimeLibrary="2" UsePrecompiledHeader="0" - WarningLevel="3" + WarningLevel="4" Detect64BitPortabilityProblems="true" DebugInformationFormat="3" + DisableSpecificWarnings="4100" /> <Tool Name="VCManagedResourceCompilerTool" Modified: freeswitch/trunk/libs/libdingaling/src/libdingaling.c ============================================================================== --- freeswitch/trunk/libs/libdingaling/src/libdingaling.c (original) +++ freeswitch/trunk/libs/libdingaling/src/libdingaling.c Tue Oct 17 17:56:45 2006 @@ -395,7 +395,7 @@ session->candidates[index].address = apr_pstrdup(session->pool, key); } if ((key = iks_find_attrib(tag, "port"))) { - session->candidates[index].port = atoi(key); + session->candidates[index].port = (uint16_t)atoi(key); } if (globals.debug) { globals.logger(DL_LOG_DEBUG, @@ -1185,7 +1185,7 @@ { iks *iq, *sess, *tag; - unsigned int x, id; + unsigned int x, id = 0; for (x = 0; x < clen; x++) { @@ -1408,7 +1408,7 @@ int8_t ldl_handle_ready(ldl_handle_t *handle) { - return ldl_test_flag(handle, LDL_FLAG_READY); + return (int8_t)ldl_test_flag(handle, LDL_FLAG_READY); } ldl_status ldl_handle_init(ldl_handle_t **handle, @@ -1454,7 +1454,7 @@ new_handle->server = apr_pstrdup(pool, server); if ((p = strchr(new_handle->server, ':'))) { *p++ = '\0'; - new_handle->port = atoi(p); + new_handle->port = (uint16_t)atoi(p); } }