mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 17:01:29 +00:00
swaybg: comment unused argument
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]; ^
This commit is contained in:
parent
a642827dfb
commit
9e7064917d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue