提交 0c1a95f7 authored 作者: Travis Cross's avatar Travis Cross

fix gcc 4.7.0 warning related to enum type

This amends commit 7bd9efc7.

We changed away from using unsigned here because it caused a warning
on Windows.  Using the more specific type, however, is causing a
warning on gcc-4.7 (it notices that the switch statement contains
values not present in the specified enum type).  So we're switching
back to unsigned here while keeping the type casts and hoping that
keeps Windows happy.
上级 16cf43a6
...@@ -692,7 +692,7 @@ static int zrtp_send_rtp_callback(const zrtp_stream_t *stream, char *rtp_packet, ...@@ -692,7 +692,7 @@ static int zrtp_send_rtp_callback(const zrtp_stream_t *stream, char *rtp_packet,
return status; return status;
} }
static void zrtp_event_callback(zrtp_stream_t *stream, zrtp_security_event_t event) static void zrtp_event_callback(zrtp_stream_t *stream, unsigned event)
{ {
switch_rtp_t *rtp_session = zrtp_stream_get_userdata(stream); switch_rtp_t *rtp_session = zrtp_stream_get_userdata(stream);
zrtp_session_info_t zrtp_session_info; zrtp_session_info_t zrtp_session_info;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论