From: Michael Jerris Date: Sun, 16 Mar 2014 02:47:55 +0000 (-0400) Subject: we are intentionally using a value outside of the enum here as a special value. ... X-Git-Tag: v1.5.11~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c95a52ff635d8e76f60b7a5c74000b0939bcb85;p=thirdparty%2Ffreeswitch.git we are intentionally using a value outside of the enum here as a special value. The compiler will always make this an int anyways, so this is safe. cast to remove the warning --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index ef83764335..feb42dd4d3 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -611,7 +611,7 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status, if (status_val == 200) { switch_channel_hangup(channel, SWITCH_CAUSE_BLIND_TRANSFER); } - if (tech_pvt->want_event == 9999) { + if ((int)tech_pvt->want_event == 9999) { tech_pvt->want_event = 0; } }