diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-11-25 23:47:15 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-11-25 23:47:15 +0200 |
commit | 9b89f58caec20bab00901264a8fe44873cf02948 (patch) | |
tree | 3fbc8639c6665d1d42791b6507083cf28151e420 /ext/wayland | |
parent | 939528e542c111fdeec11ab4bab2d42de3ce6645 (diff) | |
download | gstreamer-plugins-bad-9b89f58caec20bab00901264a8fe44873cf02948.tar.gz |
ext: Fix various compiler warnings with clang
wldisplay.c:179:15: error: comparison of unsigned enum expression < 0 is always false [-Werror,-Wtautological-compare]
if (shm_fmt < 0)
~~~~~~~ ^ ~
gstsegmentation.cpp:419:40: error: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion]
filter->cvFG->imageData[j] = 255;
~ ^~~
https://bugzilla.gnome.org/show_bug.cgi?id=775112
Diffstat (limited to 'ext/wayland')
-rw-r--r-- | ext/wayland/wldisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wayland/wldisplay.c b/ext/wayland/wldisplay.c index 07a203cac..39782bca5 100644 --- a/ext/wayland/wldisplay.c +++ b/ext/wayland/wldisplay.c @@ -176,7 +176,7 @@ gst_wl_display_check_format_for_shm (GstWlDisplay * display, guint i; shm_fmt = gst_video_format_to_wl_shm_format (format); - if (shm_fmt < 0) + if (shm_fmt == (enum wl_shm_format) -1) return FALSE; formats = display->shm_formats; |