Commit fa223109 authored by jehan's avatar jehan

fix compilation warnings

parent 9753c73f
......@@ -4,6 +4,10 @@ AC_INIT([mediastreamer],[2.10.0])
AC_MSG_NOTICE([$PACKAGE_NAME-$PACKAGE_VERSION A mediastreaming library for telephony application.])
AC_MSG_NOTICE([licensed under the terms of the General Public License (GPL)])
dnl don't put anythingelse before AC_PROG_CC unless checking if macro still work for clang
AC_PROG_CXX(["xcrun clang++" g++])
AC_PROG_CC(["xcrun clang" gcc])
AC_PROG_OBJC(["xcrun clang" gcc])
AC_CANONICAL_SYSTEM
dnl Source packaging numbers
......@@ -52,6 +56,13 @@ AC_ARG_ENABLE(strict,
)
CFLAGS="-DORTP_INET6 $CFLAGS "
#for clang
case $CC in
*clang*)
CFLAGS="$CFLAGS -Qunused-arguments"
;;
esac
dnl enable ipv6 support
AC_ARG_ENABLE(ipv6,
......@@ -78,10 +89,6 @@ AC_ARG_ENABLE(ntp-timestamp,
[ntptimestamp=false]
)
dnl Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_OBJC
AC_CONFIG_MACRO_DIR([m4])
LT_INIT([win32-dll shared disable-static])
......
......@@ -42,7 +42,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define CONF_MAX_PINS 128
#endif
static const float max_e=(float)32767*32767;
static const float coef=(float)0.01;
typedef struct Channel{
......
......@@ -46,7 +46,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define EC_DUMP_PREFIX "/dynamic/tests"
#endif
static const float smooth_factor=0.05;
static const int framesize=64;
static const int flow_control_interval_ms=5000;
......
......@@ -181,11 +181,6 @@ static inline void payload_header_set(uint8_t *buf, uint32_t ident, uint8_t ft,
*((uint32_t*)buf)=htonl(tmp);
}
static inline uint32_t payload_header_get_ident(uint8_t *buf){
uint32_t *tmp=(uint32_t*)buf;
return (ntohl(*tmp)>>8) & 0xFFFFFF;
}
static inline uint32_t payload_header_get_tdt(uint8_t *buf){
uint32_t *tmp=(uint32_t*)buf;
return ((ntohl(*tmp))>>4) & 0x3;
......@@ -196,11 +191,6 @@ static inline uint32_t payload_header_get_ft(uint8_t *buf){
return ((ntohl(*tmp))>>6) & 0x3;
}
static inline uint32_t payload_header_get_pkts(uint8_t *buf){
uint32_t *tmp=(uint32_t*)buf;
return ntohl(*tmp) & 0xf;
}
static int create_packed_conf(EncState *s){
ogg_packet p;
theora_state *tstate=&s->tstate;
......
......@@ -193,7 +193,6 @@ MSBitrateDriver *ms_audio_bitrate_driver_new(MSFilter *encoder){
}
static const int min_video_bitrate=64000;
static const float increase_ramp=1.1;
typedef struct _MSAVBitrateDriver{
MSBitrateDriver parent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment