Silence unused variable warning in a build --without-all
authorStefan Kangas <stefan@marxist.se>
Thu, 14 Jul 2022 14:30:56 +0000 (16:30 +0200)
committerStefan Kangas <stefan@marxist.se>
Thu, 14 Jul 2022 14:34:26 +0000 (16:34 +0200)
* src/xfns.c (Fx_double_buffered_p): Silence unused variable warning
in a build --without-all.

src/xfns.c

index 41a9d710d44dbf87bee98bf9c8452e679460a3dc..748ea10c952558631ef69855e9728522f45a2ecc 100644 (file)
@@ -8850,9 +8850,8 @@ DEFUN ("x-double-buffered-p", Fx_double_buffered_p, Sx_double_buffered_p,
        doc: /* Return t if FRAME is being double buffered.  */)
      (Lisp_Object frame)
 {
-  struct frame *f = decode_live_frame (frame);
-
 #ifdef HAVE_XDBE
+  struct frame *f = decode_live_frame (frame);
   return FRAME_X_DOUBLE_BUFFERED_P (f) ? Qt : Qnil;
 #else
   return Qnil;