]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix more msvc warnings. Fix mod_sndfile build on OSX
authorMichael Jerris <mike@jerris.com>
Mon, 20 Feb 2006 04:36:29 +0000 (04:36 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 20 Feb 2006 04:36:29 +0000 (04:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@635 d0543943-73ff-0310-b7d9-9358b9ac24b2

29 files changed:
src/include/switch_module_interfaces.h
src/mod/applications/mod_bridgecall/mod_bridgecall.c
src/mod/applications/mod_bridgecall/mod_bridgecall.vcproj
src/mod/applications/mod_ivrtest/mod_ivrtest.vcproj
src/mod/applications/mod_playback/mod_playback.c
src/mod/applications/mod_playback/mod_playback.vcproj
src/mod/codecs/mod_g711/g711.c
src/mod/codecs/mod_g711/mod_g711.vcproj
src/mod/codecs/mod_g729/mod_g729.vcproj
src/mod/codecs/mod_gsm/mod_gsm.vcproj
src/mod/codecs/mod_l16/mod_l16.vcproj
src/mod/codecs/mod_speex/mod_speex.c
src/mod/codecs/mod_speex/mod_speex.vcproj
src/mod/dialplans/mod_dialplan_demo/mod_dialplan_demo.vcproj
src/mod/dialplans/mod_dialplan_directory/mod_dialplan_directory.vcproj
src/mod/dialplans/mod_pcre/mod_pcre.vcproj
src/mod/directories/mod_ldap/mod_ldap.vcproj
src/mod/endpoints/mod_exosip/mod_exosip.vcproj
src/mod/endpoints/mod_iax/mod_iax.vcproj
src/mod/endpoints/mod_portaudio/mod_PortAudio.vcproj
src/mod/endpoints/mod_woomera/mod_woomera.vcproj
src/mod/event_handlers/mod_event_multicast/mod_event_multicast.vcproj
src/mod/event_handlers/mod_event_test/mod_event_test.vcproj
src/mod/event_handlers/mod_xmpp_event/mod_xmpp_event.vcproj
src/mod/event_handlers/mod_zeroconf/mod_zeroconf.vcproj
src/mod/formats/mod_sndfile/mod_sndfile.c
src/mod/formats/mod_sndfile/mod_sndfilel.vcproj
src/mod/timers/mod_softtimer/mod_softtimer.vcproj
w32/vsnet/FreeSwitchConsole.vcproj

index f751e1f4ef420a51a75b49dab5f01306245f5b95..1dac9c5aab7e60e18c0a6683729b9695ca58a9a0 100644 (file)
@@ -241,9 +241,9 @@ struct switch_file_interface {
        /*! function to close the file */
        switch_status (*file_close)(switch_file_handle *);
        /*! function to read from the file */
-       switch_status (*file_read)(switch_file_handle *, void *data, unsigned int *len);
+       switch_status (*file_read)(switch_file_handle *, void *data, size_t *len);
        /*! function to write from the file */
-       switch_status (*file_write)(switch_file_handle *, void *data, unsigned int *len);
+       switch_status (*file_write)(switch_file_handle *, void *data, size_t *len);
        /*! function to seek to a certian position in the file */
        switch_status (*file_seek)(switch_file_handle *, unsigned int *cur_pos, unsigned int samples, int whence);
        /*! list of supported file extensions */
index 5d978773bfc2b60ab7d8d673f4fe73a06ce2e618..ea5075965be989bbbae0e401cb37dcb2f43fd162 100644 (file)
@@ -174,7 +174,7 @@ static void audio_bridge_function(switch_core_session *session, char *data)
 
        strncpy(chan_type, data, sizeof(chan_type));
 
-       if ((chan_data = strchr(chan_type, '/'))) {
+       if ((chan_data = strchr(chan_type, '/')) != 0) {
                *chan_data = '\0';
                chan_data++;
        }
index 9cf28d3646d5499362f6d6a2a0390dcf27069c9e..5ead64296b93651ab45344d8aec7c28ce83a7853 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index ede8881b4cbbc4464220f55c20dc42a633b2cfdf..6e61d8c3e59e13623314ebc558e7605df964ad27 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 3e8932cd6cd29d58b594dabb02bb964d61fa76ba..d56da492bed7b11256ccd6938cc319b693a13382 100644 (file)
@@ -57,7 +57,7 @@ static void playback_function(switch_core_session *session, char *data)
 
        file_name = switch_core_session_strdup(session, data);
 
-       if ((timer_name = strchr(file_name, ' '))) {
+       if ((timer_name = strchr(file_name, ' ')) != 0) {
                *timer_name++ = '\0';
        }
 
index e584929093f4d13e38cffead8f5f44a5e73621e7..fe00109d4e4f86a2cab765438f8ddbab54e1aa8f 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 2d47891c999388df043dd5499ac02381ce39d84a..334c079fdffca43790638caf4679b0b88ef6c8b9 100644 (file)
@@ -161,7 +161,7 @@ unsigned char linear2alaw(short pcm_val)
                        aval |= (pcm_val >> 1) & QUANT_MASK;
                else
                        aval |= (pcm_val >> seg) & QUANT_MASK;
-               return (aval ^ mask);
+               return (unsigned char)(aval ^ mask);
        }
 }
 
@@ -177,7 +177,7 @@ short alaw2linear(unsigned char a_val)
        a_val ^= 0x55;
 
        t = (a_val & QUANT_MASK) << 4;
-       seg = ((unsigned) a_val & SEG_MASK) >> SEG_SHIFT;
+       seg = (short)(((unsigned) a_val & SEG_MASK) >> SEG_SHIFT);
        switch (seg) {
        case 0:
                t += 8;
@@ -252,8 +252,8 @@ unsigned char linear2ulaw(short pcm_val)
        if (seg >= 8)                           /* out of range, return maximum value. */
                return (unsigned char) (0x7F ^ mask);
        else {
-               uval = (unsigned char) (seg << 4) | ((pcm_val >> (seg + 1)) & 0xF);
-               return (uval ^ mask);
+               uval = (unsigned char) ((seg << 4) | ((pcm_val >> (seg + 1)) & 0xF));
+               return (unsigned char) (uval ^ mask);
        }
 
 }
index a1e3151e25bce90a0efebf61dcffac7400c89e0c..fe834caa424f2b2697ca9f9d556801ca21b57f73 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 5819c68f5ce8e82b717de73133a9cec8e418a4de..3fb0c0769ead1216258ed747be6da38a5383218e 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 0cb4afe286d063dc41f6f6ff058c6b077b0ddbdc..d5a8b930cf9b708603c4c4429ac296deb9ff8325 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="3"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="2"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index c83a02e4b210fc68842456faf9f4d288fa513d37..85cb89cd2afda8da3ae9e78211096702d3372378 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index f351807880de1d3994fa9361cc222347431be4a2..c1110dceabc8143687e0177dd5ddc31cc6f310da 100644 (file)
@@ -87,7 +87,7 @@ static switch_status switch_speex_init(switch_codec *codec, switch_codec_flag fl
 
        memcpy(&codec->codec_settings, codec_settings, sizeof(codec->codec_settings));
 
-       if (!(encoding || decoding) || (!(context = switch_core_alloc(codec->memory_pool, sizeof(*context))))) {
+       if (!(encoding || decoding) || ((context = switch_core_alloc(codec->memory_pool, sizeof(*context))) == 0)) {
                return SWITCH_STATUS_FALSE;
        } else {
                const SpeexMode *mode = NULL;
index 8d05466ef9b5d2ae3c492efd513f51f778281b26..678eb4c7a8cfb74136d63977954f20e8ecf7dc04 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index e616e18d5e56e00905ab8cd02f6f0d1fa5a37703..fa03f71d549033f5d0211612e898d013548d91e2 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 7a98810904e23127c52c197c731119841d613c49..5ad7971ed0daecf11e898622cb8e21933f28eb46 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 4c7d30bdd424188c8e7f2c2e8fbd8eafad05c05b..4d020eeed07a1523e871f3a347dd81de88e47c34 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS;PCRE_STATIC"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 0830c42df216c321ba28246078a3e904d53bb30e..318d1f9513d65ea52f3914150ac86a8ba8e2dd8a 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS;LDAP_DEPRECATED"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS;MSLDAP"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 648ba5f7fb331ce53a0d7f365ff773f2cac1c985..41a323015ff55dce476a02fb79d56dbd782b792d 100644 (file)
@@ -50,7 +50,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index a65c560729cbe2786f515d4002a87823e6580549..34ef0ef62a8ebe222f4ef73b5b52b258af11ba9b 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="3"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="2"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 178407adb27948e6bcdc7feedcb20df05bb21ee9..149b7b364ec62110aa25294dbe904a712e5704a9 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 40e1464679cafeb6c3c80f527d2f1bae16f07c62..12378e828449a86df29972e7599bc306d60a715a 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 533cb35fecd442486d578b1d7abab9efad72a3a0..7c753e35a13b1c34d5f5c14e7bb3a1ad74912ff5 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 4c2c6e4251c075da5411dfca0d7ef63a5f7a2c0c..631bf56175a52ff68c70524e25f8705400065bca 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index d8ead661850e732497fa1850ab3dad6a80a15ae1..3657abab278dd86bf8b765c83661d3b4cdee3e96 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="3"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="2"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index ef2ffd9985d8517d1b0c61fa4a02f32a24c8ee14..3a45066a7576f64df471f79921fa9bb702476713 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 6efb77efd4e2cea0df5bf653e16deab5ad08a8d0..2b34c67f534f760ece49a27a3037becb7e80242d 100644 (file)
@@ -48,7 +48,7 @@ switch_status sndfile_file_open(switch_file_handle *handle, char *path)
        char *ext;
        int ready = 1;
        
-       if (!(ext = strrchr(path, '.'))) {
+       if ((ext = strrchr(path, '.')) == 0) {
                switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Invalid Format\n");
                return SWITCH_STATUS_GENERR;
        }
@@ -68,7 +68,7 @@ switch_status sndfile_file_open(switch_file_handle *handle, char *path)
                return SWITCH_STATUS_GENERR;
        }
 
-       if (!(context = switch_core_alloc(handle->memory_pool, sizeof(*context)))) {
+       if ((context = switch_core_alloc(handle->memory_pool, sizeof(*context))) == 0) {
                return SWITCH_STATUS_MEMERR;
        }
 
@@ -125,7 +125,7 @@ switch_status sndfile_file_open(switch_file_handle *handle, char *path)
        };
 
 
-       if (!(context->handle = sf_open(path, mode, &context->sfinfo))) {
+       if ((context->handle = sf_open(path, mode, &context->sfinfo)) == 0) {
                switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Error Opening File [%s] [%s]\n", path,
                                                          sf_strerror(context->handle));
                return SWITCH_STATUS_GENERR;
index b0e0bb1add1e818b937a3e89adb265c252da7f12..ed2648314c1f54cf5ad64c9473171d8996ea37f6 100644 (file)
@@ -48,7 +48,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="3"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="2"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 4dd4a3c5080fdffd12082c1acad2c31b01c248cb..13d38407658e2e0a27cd24e16902ea188a4e6ced 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r
index 099b7489d737b491399c23d7cae1e660b86e9a99..369318e8060bc3d1258ce2f4d59d97bd1d442e31 100644 (file)
@@ -47,7 +47,7 @@
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="1"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                        />\r
                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"\r
                                RuntimeLibrary="0"\r
                                UsePrecompiledHeader="0"\r
-                               WarningLevel="3"\r
+                               WarningLevel="4"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                        />\r