opencv: compile with -Wno-format-nonliteral
opencv plugin is pulling a header which makses clang++ 10 complain a lot and blocks -werror. ``` /usr/include/opencv4/opencv2/flann/logger.h:83:36: error: format string is not a string literal [-Werror,-Wformat-nonliteral] int ret = vfprintf(stream, fmt, arglist); ^~~ ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1494>
This commit is contained in:
parent
b542b1c257
commit
cee211123a
@ -105,7 +105,9 @@ endif
|
|||||||
if opencv_found
|
if opencv_found
|
||||||
# opencv4 seems to ship with .pc file that references non-existent include dir
|
# opencv4 seems to ship with .pc file that references non-existent include dir
|
||||||
# (/usr/include/opencv4/opencv instead of /usr/include/opencv4/opencv2)
|
# (/usr/include/opencv4/opencv instead of /usr/include/opencv4/opencv2)
|
||||||
gstopencv_cargs += cxx.get_supported_arguments(['-Wno-missing-include-dirs'])
|
# clang 10 complains about the following header in opencv4
|
||||||
|
# /usr/include/opencv4/opencv2/flann/logger.h:83:36: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
|
||||||
|
gstopencv_cargs += cxx.get_supported_arguments(['-Wno-missing-include-dirs', '-Wno-format-nonliteral'])
|
||||||
|
|
||||||
gstopencv = library('gstopencv',
|
gstopencv = library('gstopencv',
|
||||||
gstopencv_sources,
|
gstopencv_sources,
|
||||||
|
@ -16,7 +16,9 @@ endif
|
|||||||
if opencv_dep.found()
|
if opencv_dep.found()
|
||||||
# opencv4 seems to ship with .pc file that references non-existent include dir
|
# opencv4 seems to ship with .pc file that references non-existent include dir
|
||||||
# (/usr/include/opencv4/opencv instead of /usr/include/opencv4/opencv2)
|
# (/usr/include/opencv4/opencv instead of /usr/include/opencv4/opencv2)
|
||||||
gstopencv_cargs = cxx.get_supported_arguments(['-Wno-missing-include-dirs'])
|
# clang 10 complains about the following header in opencv4
|
||||||
|
# /usr/include/opencv4/opencv2/flann/logger.h:83:36: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
|
||||||
|
gstopencv_cargs = cxx.get_supported_arguments(['-Wno-missing-include-dirs', '-Wno-format-nonliteral'])
|
||||||
|
|
||||||
gstopencv = library('gstopencv-' + api_version,
|
gstopencv = library('gstopencv-' + api_version,
|
||||||
opencv_sources,
|
opencv_sources,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user