summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-09-17 20:22:41 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-09-17 20:22:41 -0700
commit68862e5666f38f0e9d5d1e82433196658d2233a3 (patch)
treec88b2cf6dc5f97ee5ab42c24f2558669d9145f3c
parent9ae2a4596a5c83d55555d5805db6637831e62bec (diff)
Add -pedantic, Remove stray ;
-rw-r--r--Makefile2
-rw-r--r--choices.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ee02ea5..349ffc2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
VERSION=0.1beta
CPPFLAGS=-DVERSION=\"${VERSION}\"
-CFLAGS+=-Wall -Wextra -g -std=c99 -O3
+CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic
PREFIX?=/usr/local
MANDIR?=$(PREFIX)/share/man
BINDIR?=$(PREFIX)/bin
diff --git a/choices.c b/choices.c
index 8db33eb..95acd42 100644
--- a/choices.c
+++ b/choices.c
@@ -40,10 +40,11 @@ void choices_init(choices_t *c){
c->selection = c->available = 0;
choices_resize(c, INITIAL_CAPACITY);
}
+
void choices_free(choices_t *c){
free(c->strings);
free(c->results);
-};
+}
void choices_add(choices_t *c, const char *choice){
if(c->size == c->capacity){