Similar to what we use for the werror Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5543>