diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2016-02-10 14:05:37 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-11 22:33:39 +0000 |
commit | 78be954e909a0260ec86671d41d9bc9e7b76b7f9 (patch) | |
tree | 9258b11e7c7d3f071100dd139adc1e4db9759b95 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb | |
parent | fdd89795e22ca2e1613aee9bfa199f77deef8448 (diff) | |
download | poky-78be954e909a0260ec86671d41d9bc9e7b76b7f9.tar.gz |
gstreamer1.0-plugins-bad_git: fix gst_structure_get() etc compiler warnings
| ../../../gst-plugins-bad-1.7.1/sys/decklink/gstdecklinkaudiosrc.cpp: In function 'gboolean gst_decklink_audio_src_set_caps(GstBaseSrc*, GstCaps*)':
| ../../../gst-plugins-bad-1.7.1/sys/decklink/gstdecklinkaudiosrc.cpp:315:59: error: missing sentinel in function call [-Werror=format=]
| g_object_get (videosrc, "connection", &vconn, NULL);
| ^
| cc1plus: all warnings being treated as errors
For GStreamer functions declared with G_GNUC_NULL_TERMINATED,
ie __attribute__((__sentinel__)), gcc will generate a warning if the
last parameter passed to the function is not NULL (where a valid NULL
in this context is defined as zero with any pointer type).
The C callers to such functions within gst-plugins-bad use the C NULL
definition (ie ((void*)0)), which is a valid sentinel.
However the C++ NULL definition (ie 0L), is not a valid sentinel
without an explicit cast to a pointer type.
(From OE-Core rev: 4ffc1c6ea67e65c21964fa119820b37725f5a5de)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb index e22a210c68..f9b5f3e223 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb | |||
@@ -13,6 +13,7 @@ SRC_URI = " \ | |||
13 | file://configure-allow-to-disable-libssh2.patch \ | 13 | file://configure-allow-to-disable-libssh2.patch \ |
14 | file://fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch \ | 14 | file://fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch \ |
15 | file://avoid-including-sys-poll.h-directly.patch \ | 15 | file://avoid-including-sys-poll.h-directly.patch \ |
16 | file://ensure-valid-sentinels-for-gst_structure_get-etc.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | PV = "1.7.1+git${SRCPV}" | 19 | PV = "1.7.1+git${SRCPV}" |