mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
Fix a compiler warning
Clang things that timings can be NULL here, and I think it might be right.
This commit is contained in:
parent
1648dc36f8
commit
fecc80b59c
@ -621,11 +621,11 @@ gdk_frame_clock_paint_idle (void *data)
|
|||||||
priv->phase = GDK_FRAME_CLOCK_PHASE_NONE;
|
priv->phase = GDK_FRAME_CLOCK_PHASE_NONE;
|
||||||
}
|
}
|
||||||
#ifdef G_ENABLE_DEBUG
|
#ifdef G_ENABLE_DEBUG
|
||||||
if (GDK_DEBUG_CHECK (FRAMES))
|
if (GDK_DEBUG_CHECK (FRAMES))
|
||||||
{
|
{
|
||||||
if (timings)
|
if (timings)
|
||||||
timings->frame_end_time = g_get_monotonic_time ();
|
timings->frame_end_time = g_get_monotonic_time ();
|
||||||
}
|
}
|
||||||
#endif /* G_ENABLE_DEBUG */
|
#endif /* G_ENABLE_DEBUG */
|
||||||
G_GNUC_FALLTHROUGH;
|
G_GNUC_FALLTHROUGH;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user