Commit e3eda315 authored by jehan's avatar jehan

avoid warning for static inline function in case of CLANG compiling in -g mode

parent 3dbbb236
......@@ -121,7 +121,7 @@ AC_DEFUN([MS_CHECK_VIDEO],[
dnl check for new/old ffmpeg header file layout
CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="$FFMPEG_CFLAGS $CPPFLAGS"
CPPFLAGS="$FFMPEG_CFLAGS $CPPFLAGS -Wno-error"
AC_CHECK_HEADERS(libavcodec/avcodec.h)
CPPFLAGS=$CPPFLAGS_save
......@@ -142,7 +142,7 @@ AC_DEFUN([MS_CHECK_VIDEO],[
dnl # include "swscale.h" // private linhone swscale.h
dnl #endif
CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="$SWSCALE_CFLAGS $CPPFLAGS"
CPPFLAGS="$SWSCALE_CFLAGS $CPPFLAGS -Wno-error"
AC_CHECK_HEADERS(libswscale/swscale.h)
CPPFLAGS=$CPPFLAGS_save
......
......@@ -36,6 +36,12 @@
#ifdef HAVE_CONFIG_H
#include "mediastreamer-config.h"
#endif
#ifdef __clang__
/*in case of compile with -g static inline can produce this type of warning*/
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
#include <upnp.h>
#include <ithread.h>
......
......@@ -29,6 +29,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "mediastreamer-config.h"
#endif
#ifdef __clang__
/*in case of compile with -g static inline can produce this type of warning*/
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
#include <ortp/port.h>
#if defined(HAVE_LIBAVCODEC_AVCODEC_H)
......
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