From 9e7064917d5fa0851c1c1406c08203cf4679a6cb Mon Sep 17 00:00:00 2001 From: Christoph Gysin Date: Wed, 25 Nov 2015 14:10:50 +0200 Subject: [PATCH] swaybg: comment unused argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a compiler warning: ../swaybg/main.c: In function ‘main’: ../swaybg/main.c:52:8: warning: unused variable ‘scaling_mode’ [-Wunused-variable] char *scaling_mode = argv[3]; ^ --- swaybg/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swaybg/main.c b/swaybg/main.c index 5a12eec6..a790d6e9 100644 --- a/swaybg/main.c +++ b/swaybg/main.c @@ -49,7 +49,7 @@ int main(int argc, char **argv) { desktop_shell_set_background(registry->desktop_shell, output->output, window->surface); list_add(surfaces, window); - char *scaling_mode = argv[3]; + /* char *scaling_mode = argv[3]; */ cairo_surface_t *image = cairo_image_surface_create_from_png(argv[2]); double width = cairo_image_surface_get_width(image); double height = cairo_image_surface_get_height(image);