Browse code

Add -pedantic, Remove stray ;

John Hawthorn authored on 18/09/2014 03:22:41
Showing 2 changed files

... ...
@@ -1,7 +1,7 @@
1 1
 VERSION=0.1beta
2 2
 
3 3
 CPPFLAGS=-DVERSION=\"${VERSION}\"
4
-CFLAGS+=-Wall -Wextra -g -std=c99 -O3
4
+CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic
5 5
 PREFIX?=/usr/local
6 6
 MANDIR?=$(PREFIX)/share/man
7 7
 BINDIR?=$(PREFIX)/bin
... ...
@@ -40,10 +40,11 @@ void choices_init(choices_t *c){
40 40
 	c->selection = c->available = 0;
41 41
 	choices_resize(c, INITIAL_CAPACITY);
42 42
 }
43
+
43 44
 void choices_free(choices_t *c){
44 45
 	free(c->strings);
45 46
 	free(c->results);
46
-};
47
+}
47 48
 
48 49
 void choices_add(choices_t *c, const char *choice){
49 50
 	if(c->size == c->capacity){