From e21cdb67718a5d203372fd0c425e8be3e1d273f3 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 21 May 2022 23:25:52 -0700 Subject: modules/voronoi: silence warning about fmt mismatch n_cells is a size_t, use %zu clang complained, gcc doesn't, huh --- src/modules/voronoi/voronoi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/voronoi/voronoi.c b/src/modules/voronoi/voronoi.c index 3e6a5e3..0a9ba70 100644 --- a/src/modules/voronoi/voronoi.c +++ b/src/modules/voronoi/voronoi.c @@ -396,7 +396,7 @@ static int voronoi_setup(const til_settings_t *settings, til_setting_t **res_set if (!setup) return -ENOMEM; - sscanf(n_cells, "%u", &setup->n_cells); + sscanf(n_cells, "%zu", &setup->n_cells); if (!strcasecmp(randomize, "on")) setup->randomize = 1; -- cgit v1.2.3