[gtk/wip/otte/gdk-headers: 6/8] win32: Fix gcc warnings
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gdk-headers: 6/8] win32: Fix gcc warnings
- Date: Fri, 24 Sep 2021 19:57:38 +0000 (UTC)
commit 902c14832b5195794b747fa67688702646e6da86
Author: Benjamin Otte <otte redhat com>
Date: Fri Sep 24 21:22:12 2021 +0200
win32: Fix gcc warnings
gdk/win32/gdkcairocontext-win32.c | 7 -------
gdk/win32/gdkdisplay-win32.c | 2 ++
2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gdk/win32/gdkcairocontext-win32.c b/gdk/win32/gdkcairocontext-win32.c
index a46891d8a4..9eb115ffcd 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);
@@ -121,11 +119,6 @@ gdk_win32_cairo_context_end_frame (GdkDrawContext *draw_context,
cairo_region_t *painted)
{
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
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 84d99b78a6..83038296dc 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -1208,7 +1208,9 @@ gdk_win32_display_init_gl (GdkDisplay *display,
gpointer
gdk_win32_display_get_egl_display (GdkDisplay *display)
{
+#ifdef GDK_WIN32_ENABLE_EGL
GdkWin32Display *display_win32;
+#endif
g_return_val_if_fail (GDK_IS_WIN32_DISPLAY (display), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]