[gtk/wip/otte/gdk-headers: 5/5] win32: Fix gcc warnings




commit 25db1066d72a638589ec91a800db6ddddebc07a2
Author: Benjamin Otte <otte redhat com>
Date:   Fri Sep 24 21:22:12 2021 +0200

    win32: Fix gcc warnings

 gdk/win32/gdkcairocontext-win32.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/gdk/win32/gdkcairocontext-win32.c b/gdk/win32/gdkcairocontext-win32.c
index a46891d8a4..1529c6fabb 100644
--- a/gdk/win32/gdkcairocontext-win32.c
+++ b/gdk/win32/gdkcairocontext-win32.c
@@ -57,14 +57,12 @@ gdk_win32_cairo_context_begin_frame (GdkDrawContext *draw_context,
 {
   GdkWin32CairoContext *self = GDK_WIN32_CAIRO_CONTEXT (draw_context);
   GdkSurface *surface;
-  GdkWin32Surface *impl;
   int scale;
   cairo_t *cr;
   int width, height;
   RECT queued_window_rect;
 
   surface = gdk_draw_context_get_surface (draw_context);
-  impl = GDK_WIN32_SURFACE (surface);
   scale = gdk_surface_get_scale_factor (surface);
 
   queued_window_rect = gdk_win32_surface_handle_queued_move_resize (draw_context);
@@ -122,10 +120,8 @@ gdk_win32_cairo_context_end_frame (GdkDrawContext *draw_context,
 {
   GdkWin32CairoContext *self = GDK_WIN32_CAIRO_CONTEXT (draw_context);
   GdkSurface *surface;
-  int scale;
 
   surface = gdk_draw_context_get_surface (draw_context);
-  scale = gdk_surface_get_scale_factor (surface);
 
   /* The code to resize double-buffered windows immediately
    * before blitting the buffer contents onto them used


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]