From 05c53bb909ccaa8d8aeefc62a0850664c6075cce Mon Sep 17 00:00:00 2001 From: Christian C Date: Thu, 6 Mar 2025 16:11:39 -0800 Subject: Remove unused variables --- Makefile | 1 + src/lib/seg/util.c | 1 - src/main.c | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2570a08..8424d4b 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ CFLAGS= CFLAGS+=$(shell $(PKGCONF) --cflags $(PKGS)) CFLAGS+=-I$(INC_DIR) CFLAGS+=$(DEFINES) +CFLAGS+=-Wall LDFLAGS= LDFLAGS+=$(shell $(PKGCONF) --libs $(PKGS)) diff --git a/src/lib/seg/util.c b/src/lib/seg/util.c index 238fa1c..8a5f5e5 100644 --- a/src/lib/seg/util.c +++ b/src/lib/seg/util.c @@ -122,7 +122,6 @@ uint16_t* _erode(uint16_t* mask, uint32_t width, uint32_t height) new_mask[current_position] = mask[current_position]; continue; } - bool_t erode = FALSE; size_t proposed_position; if (x != 0) { proposed_position = xy_to_coord(x-1, y, width, height); diff --git a/src/main.c b/src/main.c index 3643ea9..5e782ee 100644 --- a/src/main.c +++ b/src/main.c @@ -131,7 +131,6 @@ int main(int argc, char** argv) return 1; } - uint16_t* new_masks; //----------------------------------------------- //-FIND-CONTIGUOUS-REGIONS----------------------- //----------------------------------------------- @@ -173,7 +172,6 @@ int main(int argc, char** argv) #endif free_avl_tree_nodes(root); - uint16_t *new_labels; TIME(ts_start); //----------------------------------------------- //-CLOSE-UP-SMALL-GAPS-BETWEEN-REGIONS----------- -- cgit v1.2.1