]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
up the warning level.
authorMichael Jerris <mike@jerris.com>
Tue, 17 Oct 2006 21:56:45 +0000 (21:56 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 17 Oct 2006 21:56:45 +0000 (21:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3072 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/libdingaling/libdingaling.vcproj
libs/libdingaling/src/libdingaling.c

index 8d3ac7a6ec2785c0c72fc8ad017a422b137ac1bb..033d2997ebb62758b520495ee4bf4e80825e4339 100644 (file)
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="3"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
+                               DisableSpecificWarnings="4100;4706"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"\r
                                RuntimeLibrary="2"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
+                               DisableSpecificWarnings="4100"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="3"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
+                               DisableSpecificWarnings="4100"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC"\r
                                RuntimeLibrary="2"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
+                               DisableSpecificWarnings="4100"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index b91128ad1f243d6d551745a0aec2f989429138ff..d8fc3d0f8460d49adcadcb2a722953a25efc2c0a 100644 (file)
@@ -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);
                                                }
                                                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 @@ unsigned int ldl_session_candidates(ldl_session_t *session,
 
 {
        iks *iq, *sess, *tag;
-       unsigned int x, id;
+       unsigned int x, id = 0;
 
 
        for (x = 0; x < clen; x++) {
@@ -1408,7 +1408,7 @@ void ldl_global_set_log_stream(FILE *log_stream)
 
 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 @@ ldl_status ldl_handle_init(ldl_handle_t **handle,
                        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);
                        }
                }