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

@@ -60,7 +60,7 @@ SWITCH_DECLARE(switch_status) switch_channel_alloc(switch_channel **channel, swi
{
assert(pool != NULL);
if (!((*channel) = switch_core_alloc(pool, sizeof(switch_channel)))) {
if (((*channel) = switch_core_alloc(pool, sizeof(switch_channel))) == 0) {
return SWITCH_STATUS_MEMERR;
}
@@ -112,9 +112,9 @@ SWITCH_DECLARE(switch_status) switch_channel_get_raw_mode(switch_channel *channe
}
SWITCH_DECLARE(int) switch_channel_has_dtmf(switch_channel *channel)
SWITCH_DECLARE(size_t) switch_channel_has_dtmf(switch_channel *channel)
{
int has;
size_t has;
assert(channel != NULL);
switch_mutex_lock(channel->dtmf_mutex);