提交 e42d7ec1 authored 作者: Michael Jerris's avatar Michael Jerris

fix some warnings

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4641 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d0410103
...@@ -63,8 +63,8 @@ static inline char *print_bits(switch_byte_t byte, char *x) ...@@ -63,8 +63,8 @@ static inline char *print_bits(switch_byte_t byte, char *x)
\{ \{
*/ */
static const int8_t SWITCH_BITPACKED_MASKS[] = {0, 1, 3, 7, 15, 31, 63, 127, 255}; static const uint8_t SWITCH_BITPACKED_MASKS[] = {0, 1, 3, 7, 15, 31, 63, 127, 255};
static const int8_t SWITCH_REVERSE_BITPACKED_MASKS[] = {255, 254, 252, 248, 240, 224, 192, 128}; static const uint8_t SWITCH_REVERSE_BITPACKED_MASKS[] = {255, 254, 252, 248, 240, 224, 192, 128};
/*! /*!
\brief Initialize a bitpack object \brief Initialize a bitpack object
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
*/ */
#undef HAVE_DIRENT_H #undef HAVE_DIRENT_H
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `gethostname' function. */ /* Define to 1 if you have the `gethostname' function. */
#undef HAVE_GETHOSTNAME #undef HAVE_GETHOSTNAME
......
...@@ -522,7 +522,7 @@ static switch_status_t conference_add_member(conference_obj_t *conference, confe ...@@ -522,7 +522,7 @@ static switch_status_t conference_add_member(conference_obj_t *conference, confe
if (conference->alone_sound) { if (conference->alone_sound) {
conference_play_file(conference, conference->alone_sound, CONF_DEFAULT_LEADIN, switch_core_session_get_channel(member->session), 0); conference_play_file(conference, conference->alone_sound, CONF_DEFAULT_LEADIN, switch_core_session_get_channel(member->session), 0);
} else { } else {
snprintf(msg, sizeof(msg), "You are currently the only person in this conference.", conference->count); snprintf(msg, sizeof(msg), "You are currently the only person in this conference.");
conference_member_say(member, msg, CONF_DEFAULT_LEADIN); conference_member_say(member, msg, CONF_DEFAULT_LEADIN);
} }
} }
......
...@@ -62,10 +62,12 @@ static void etpan_destroy(JSContext *cx, JSObject *obj) ...@@ -62,10 +62,12 @@ static void etpan_destroy(JSContext *cx, JSObject *obj)
{ {
} }
#if 0
static JSBool etpan_my_method(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) static JSBool etpan_my_method(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{ {
return JS_FALSE; return JS_FALSE;
} }
#endif
enum etpan_tinyid { enum etpan_tinyid {
etpan_NAME etpan_NAME
......
...@@ -77,7 +77,7 @@ static switch_xml_t xml_url_fetch(const char *section, ...@@ -77,7 +77,7 @@ static switch_xml_t xml_url_fetch(const char *section,
return NULL; return NULL;
} }
if (file_url = strstr(binding->url, "file:")) { if ((file_url = strstr(binding->url, "file:"))) {
file_url += 5; file_url += 5;
if (!(xml = switch_xml_parse_file(file_url))) { if (!(xml = switch_xml_parse_file(file_url))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论