Skip to content

gstvalue: fix compilation warning in GST_VALUE_HOLDS macros

Alexander Slobodeniuk requested to merge (removed):master into master

GST_VALUE_HOLDS_... macros may cause -Waddress warning on gcc if GValue is allocated on stack:

gstvalue.h:145:46: warning: the comparison will always evaluate as ‘true’ for the address of ‘v’ will never be NULL [-Waddress]

#define GST_VALUE_HOLDS_CAPS(x) ((x) != NULL && G_VALUE_TYPE(x) == _gst_caps_type)

Edited by Tim-Philipp Müller

Merge request reports