Fix a compiler warning
authorMatthias Clasen <mclasen@redhat.com>
Fri, 13 Jan 2023 16:41:49 +0000 (11:41 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 14 Jan 2023 05:14:41 +0000 (00:14 -0500)
Clang things that timings can be NULL here,
and I think it might be right.

gdk/gdkframeclockidle.c

index b3e07f86aba77c1d14e6280db9e61628ce06b6f2..31931b043281a8e283ba6b90766323fa799eb3a5 100644 (file)
@@ -621,11 +621,11 @@ gdk_frame_clock_paint_idle (void *data)
               priv->phase = GDK_FRAME_CLOCK_PHASE_NONE;
             }
 #ifdef G_ENABLE_DEBUG
-            if (GDK_DEBUG_CHECK (FRAMES))
-              {
-                if (timings)
-                  timings->frame_end_time = g_get_monotonic_time ();
-              }
+          if (GDK_DEBUG_CHECK (FRAMES))
+            {
+              if (timings)
+                timings->frame_end_time = g_get_monotonic_time ();
+            }
 #endif /* G_ENABLE_DEBUG */
           G_GNUC_FALLTHROUGH;