video-format.c:4141:14: error: comparison of constant 64 with expression of type 'GstVideoFormat' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
if (format >= G_N_ELEMENTS (formats))
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
video-format.c:4161:14: error: comparison of constant 64 with expression of type 'GstVideoFormat' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
if (format >= G_N_ELEMENTS (formats))
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
video-format.c:4178:32: error: comparison of constant 64 with expression of type 'GstVideoFormat' is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
g_return_val_if_fail (format < G_N_ELEMENTS (formats), NULL);
~~~~~~ ^
/usr/local/Cellar/glib/2.46.2/include/glib-2.0/glib/gmessages.h:377:18: note: expanded from macro 'g_return_val_if_fail'
if G_LIKELY(expr) { } else \
^
/usr/local/Cellar/glib/2.46.2/include/glib-2.0/glib/gmacros.h:326:59: note: expanded from macro 'G_LIKELY'
#define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
^
/usr/local/Cellar/glib/2.46.2/include/glib-2.0/glib/gmacros.h:320:8: note: expanded from macro '_G_BOOLEAN_EXPR'
if (expr) \
^
video-format.c:4199:32: error: comparison of constant 64 with expression of type 'GstVideoFormat' is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
g_return_val_if_fail (format < G_N_ELEMENTS (formats), NULL);
~~~~~~ ^
/usr/local/Cellar/glib/2.46.2/include/glib-2.0/glib/gmessages.h:377:18: note: expanded from macro 'g_return_val_if_fail'
if G_LIKELY(expr) { } else \
^
--
Miloš Selečéni
GPU Developer | Comprimato Systems s.r.o.