aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile2
-rw-r--r--src/avl-tree.c4
-rw-r--r--src/list-tail-node.c2
-rw-r--r--src/queue.c2
4 files changed, 4 insertions, 6 deletions
diff --git a/makefile b/makefile
index dc2f464..e9c835d 100644
--- a/makefile
+++ b/makefile
@@ -19,7 +19,7 @@ BINS=bin/allocator \
19 bin/stack-array \ 19 bin/stack-array \
20 bin/stack-linked-list 20 bin/stack-linked-list
21 21
22CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g 22CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c17 -g
23 23
24all: $(BINS) 24all: $(BINS)
25 25
diff --git a/src/avl-tree.c b/src/avl-tree.c
index 5059f3f..fcd9e37 100644
--- a/src/avl-tree.c
+++ b/src/avl-tree.c
@@ -336,10 +336,8 @@ print(struct tree_node *tree)
336} 336}
337 337
338int 338int
339main() 339main(void)
340{ 340{
341
342
343#if 0 /* 1a/b */ 341#if 0 /* 1a/b */
344 tree = insert(tree, 20); 342 tree = insert(tree, 20);
345 tree = insert(tree, 4); 343 tree = insert(tree, 4);
diff --git a/src/list-tail-node.c b/src/list-tail-node.c
index edfcf31..524e5bb 100644
--- a/src/list-tail-node.c
+++ b/src/list-tail-node.c
@@ -171,7 +171,7 @@ list_free(struct list *list)
171/* -->8-- */ 171/* -->8-- */
172 172
173int 173int
174main() 174main(void)
175{ 175{
176 struct list list[1]; 176 struct list list[1];
177 177
diff --git a/src/queue.c b/src/queue.c
index 6a472ee..5d25d65 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -91,7 +91,7 @@ queue_free(struct queue *queue)
91/* -->8-- */ 91/* -->8-- */
92 92
93int 93int
94main() 94main(void)
95{ 95{
96 struct queue queue[1]; 96 struct queue queue[1];
97 97