aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-06 16:11:39 -0800
committerChristian C <cc@localhost>2025-03-06 16:11:39 -0800
commit05c53bb909ccaa8d8aeefc62a0850664c6075cce (patch)
tree339e9ed2575ce768474e94edadf4f68bc3d2fd02
parentc370b4e6f56e52bef91aabfc4bb547a1be5be6f1 (diff)
Remove unused variables
-rw-r--r--Makefile1
-rw-r--r--src/lib/seg/util.c1
-rw-r--r--src/main.c2
3 files changed, 1 insertions, 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-----------