mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
build: appease clang warning
Clang complains about these variables being (possibly) unitialized, even when they are assigned to NULL or proper value inside the macro. Might as well initialize them to avoid the warning. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4281>
This commit is contained in:
parent
578680a530
commit
791a068c58
2 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ video_frame_get_perf_category (void)
|
|||
static GstDebugCategory *cat = NULL;
|
||||
|
||||
if (g_once_init_enter (&cat)) {
|
||||
GstDebugCategory *c;
|
||||
GstDebugCategory *c = NULL;
|
||||
|
||||
GST_DEBUG_CATEGORY_GET (c, "GST_PERFORMANCE");
|
||||
g_once_init_leave (&cat, c);
|
||||
|
|
|
@ -516,8 +516,8 @@ GST_END_TEST;
|
|||
|
||||
GST_START_TEST (info_set_and_reset_string)
|
||||
{
|
||||
GstDebugCategory *states;
|
||||
GstDebugCategory *caps;
|
||||
GstDebugCategory *states = NULL;
|
||||
GstDebugCategory *caps = NULL;
|
||||
GstDebugLevel cat;
|
||||
|
||||
GST_DEBUG_CATEGORY_GET (states, "GST_STATES");
|
||||
|
|
Loading…
Reference in a new issue