turn on higher warning level in msvc for the core and libteletone and resolve warnings.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@634 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-02-20 00:23:25 +00:00
parent 8d1967d7eb
commit fc341792be
20 changed files with 113 additions and 112 deletions

View File

@@ -132,7 +132,7 @@ static switch_status switch_loadable_module_load_file(char *filename, switch_mem
break;
}
if (!(module = switch_core_permenant_alloc(sizeof(switch_loadable_module)))) {
if ((module = switch_core_permenant_alloc(sizeof(switch_loadable_module))) == 0) {
err = "Could not allocate memory\n";
break;
}
@@ -201,7 +201,7 @@ static void process_module_file(char *dir, char *fname)
#endif
if (!(file = switch_core_strdup(loadable_modules.pool, fname))) {
if ((file = switch_core_strdup(loadable_modules.pool, fname)) == 0) {
return;
}
@@ -405,7 +405,7 @@ SWITCH_DECLARE(switch_status) switch_loadable_module_init()
fname = finfo.name;
}
if (!(ptr = (char *) fname)) {
if ((ptr = (char *) fname) == 0) {
continue;
}
@@ -512,7 +512,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(switch_memory_pool
switch_codec_interface *codec_interface;
for (x = 0; x < preflen; x++) {
if ((codec_interface = switch_loadable_module_get_codec_interface(prefs[x]))) {
if ((codec_interface = switch_loadable_module_get_codec_interface(prefs[x])) != 0 ) {
array[i++] = codec_interface;
}
}
@@ -526,7 +526,7 @@ SWITCH_DECLARE(switch_status) switch_api_execute(char *cmd, char *arg, char *ret
switch_status status;
switch_event *event;
if ((api = switch_loadable_module_get_api_interface(cmd))) {
if ((api = switch_loadable_module_get_api_interface(cmd)) != 0) {
status = api->function(arg, retbuf, len);
} else {
status = SWITCH_STATUS_FALSE;