提交 5148aa2d authored 作者: Michael Jerris's avatar Michael Jerris

up the warning level.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3072 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 3b47c3e8
...@@ -46,9 +46,10 @@ ...@@ -46,9 +46,10 @@
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="3" RuntimeLibrary="3"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="4"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
DebugInformationFormat="3" DebugInformationFormat="3"
DisableSpecificWarnings="4100;4706"
/> />
<Tool <Tool
Name="VCManagedResourceCompilerTool" Name="VCManagedResourceCompilerTool"
...@@ -107,9 +108,10 @@ ...@@ -107,9 +108,10 @@
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE" PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
RuntimeLibrary="2" RuntimeLibrary="2"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="4"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
DebugInformationFormat="3" DebugInformationFormat="3"
DisableSpecificWarnings="4100"
/> />
<Tool <Tool
Name="VCManagedResourceCompilerTool" Name="VCManagedResourceCompilerTool"
...@@ -170,9 +172,10 @@ ...@@ -170,9 +172,10 @@
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="3" RuntimeLibrary="3"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="4"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
DebugInformationFormat="4" DebugInformationFormat="4"
DisableSpecificWarnings="4100"
/> />
<Tool <Tool
Name="VCManagedResourceCompilerTool" Name="VCManagedResourceCompilerTool"
...@@ -247,9 +250,10 @@ ...@@ -247,9 +250,10 @@
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC" PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC"
RuntimeLibrary="2" RuntimeLibrary="2"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="4"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="true"
DebugInformationFormat="3" DebugInformationFormat="3"
DisableSpecificWarnings="4100"
/> />
<Tool <Tool
Name="VCManagedResourceCompilerTool" Name="VCManagedResourceCompilerTool"
......
...@@ -395,7 +395,7 @@ static ldl_status parse_session_code(ldl_handle_t *handle, char *id, char *from, ...@@ -395,7 +395,7 @@ static ldl_status parse_session_code(ldl_handle_t *handle, char *id, char *from,
session->candidates[index].address = apr_pstrdup(session->pool, key); session->candidates[index].address = apr_pstrdup(session->pool, key);
} }
if ((key = iks_find_attrib(tag, "port"))) { if ((key = iks_find_attrib(tag, "port"))) {
session->candidates[index].port = atoi(key); session->candidates[index].port = (uint16_t)atoi(key);
} }
if (globals.debug) { if (globals.debug) {
globals.logger(DL_LOG_DEBUG, globals.logger(DL_LOG_DEBUG,
...@@ -1185,7 +1185,7 @@ unsigned int ldl_session_candidates(ldl_session_t *session, ...@@ -1185,7 +1185,7 @@ unsigned int ldl_session_candidates(ldl_session_t *session,
{ {
iks *iq, *sess, *tag; iks *iq, *sess, *tag;
unsigned int x, id; unsigned int x, id = 0;
for (x = 0; x < clen; x++) { for (x = 0; x < clen; x++) {
...@@ -1408,7 +1408,7 @@ void ldl_global_set_log_stream(FILE *log_stream) ...@@ -1408,7 +1408,7 @@ void ldl_global_set_log_stream(FILE *log_stream)
int8_t ldl_handle_ready(ldl_handle_t *handle) 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, ldl_status ldl_handle_init(ldl_handle_t **handle,
...@@ -1454,7 +1454,7 @@ ldl_status ldl_handle_init(ldl_handle_t **handle, ...@@ -1454,7 +1454,7 @@ ldl_status ldl_handle_init(ldl_handle_t **handle,
new_handle->server = apr_pstrdup(pool, server); new_handle->server = apr_pstrdup(pool, server);
if ((p = strchr(new_handle->server, ':'))) { if ((p = strchr(new_handle->server, ':'))) {
*p++ = '\0'; *p++ = '\0';
new_handle->port = atoi(p); new_handle->port = (uint16_t)atoi(p);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论