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:
Jordan Petridis 2023-04-04 22:03:18 +03:00 committed by GStreamer Marge Bot
parent 578680a530
commit 791a068c58
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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");