From bf8ebe278aaf8663b9af7d81e3908086f13d4be8 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sun, 25 Aug 2024 15:31:31 +0200 Subject: [PATCH] screenshot: Fix warning about unused shoot_type Signed-off-by: Nils Philippsen --- plug-ins/screenshot/screenshot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plug-ins/screenshot/screenshot.c b/plug-ins/screenshot/screenshot.c index cb19f6a580..996416dafd 100644 --- a/plug-ins/screenshot/screenshot.c +++ b/plug-ins/screenshot/screenshot.c @@ -453,7 +453,9 @@ shoot (GdkMonitor *monitor, GimpProcedureConfig *config, GError **error) { +#if defined(PLATFORM_OSX) || defined(G_OS_WIN32) ShootType shoot_type; +#endif gboolean decorate; guint select_delay; guint screenshot_delay; @@ -465,8 +467,10 @@ shoot (GdkMonitor *monitor, "include-decoration", &decorate, "include-pointer", &show_cursor, NULL); +#if defined(PLATFORM_OSX) || defined(G_OS_WIN32) shoot_type = gimp_procedure_config_get_choice_id (GIMP_PROCEDURE_CONFIG (config), "shoot-type"); +#endif #ifdef PLATFORM_OSX if (backend == SCREENSHOT_BACKEND_OSX)