mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
opencv: avoid 'unused' compiler warnings with inline functions in opencv headers
Override CV_INLINE to avoid 'unused' gcc warnings. GLib will take care of defining 'inline' sufficiently and OpenCV's define isn't good enough to avoid 'unused' compiler warnings (at least in version 2.1.0).
This commit is contained in:
parent
e2b45f5155
commit
41b9b76fa5
1 changed files with 4 additions and 1 deletions
|
@ -20,8 +20,11 @@ libgstopencv_la_SOURCES = gstopencv.c \
|
|||
|
||||
# flags used to compile this facedetect
|
||||
# add other _CFLAGS and _LIBS as needed
|
||||
#
|
||||
# override CV_INLINE: GLib will take care of defining 'inline' sufficiently and
|
||||
# OpenCV's define isn't good enough to avoid 'unused' gcc warnings (at v2.1.0)
|
||||
libgstopencv_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(OPENCV_CFLAGS) \
|
||||
$(GST_PLUGINS_BASE_CFLAGS)
|
||||
$(GST_PLUGINS_BASE_CFLAGS) -DCV_INLINE="static inline"
|
||||
|
||||
libgstopencv_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(OPENCV_LIBS) \
|
||||
$(GSTPB_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR)
|
||||
|
|
Loading…
Reference in a new issue