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
if (background_diff
((uchar *) filter->cvYUV->imageData + j * 3,
(codeBook *) & (filter->TcodeBook[j]), 3, minMod, maxMod)) {
- filter->cvFG->imageData[j] = 255;
+ filter->cvFG->imageData[j] = (char) 255;
} else {
filter->cvFG->imageData[j] = 0;
}
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;