Increased warning level, fixed resulting warnings, changed std form c99 to gnu99

Sat, 15 Oct 2011 14:52:12 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 15 Oct 2011 14:52:12 +0200
changeset 18
cae1294702aa
parent 17
5f43f733cc12
child 19
8bac9fd0629d

Increased warning level, fixed resulting warnings, changed std form c99 to gnu99

Makefile file | annotate | diff | comparison | revisions
scanner.c file | annotate | diff | comparison | revisions
     1.1 --- a/Makefile	Thu Oct 06 00:06:30 2011 +0200
     1.2 +++ b/Makefile	Sat Oct 15 14:52:12 2011 +0200
     1.3 @@ -1,4 +1,5 @@
     1.4  CC = gcc
     1.5 +CARG = -Wall -std=gnu99
     1.6  BUILDDIR = build/
     1.7  OBJ = $(shell ls | grep '\.c' | sed 's/^\([^.]*\)\.c$$/${BUILDDIR:/=\/}\1.o/g' | tr '\n' ' ')
     1.8  BIN = ${BUILDDIR}cline
     1.9 @@ -25,7 +26,7 @@
    1.10  	mv cline.src cline.h
    1.11  
    1.12  ${BUILDDIR}%.o: %.c
    1.13 -	${CC} -c -std=c99 -o ${BUILDDIR}$*.o $<
    1.14 +	${CC} ${CARG} -c -o ${BUILDDIR}$*.o $<
    1.15  
    1.16  clean:
    1.17  	rm -f build/*
     2.1 --- a/scanner.c	Thu Oct 06 00:06:30 2011 +0200
     2.2 +++ b/scanner.c	Sat Oct 15 14:52:12 2011 +0200
     2.3 @@ -12,9 +12,8 @@
     2.4  int scanDirectory(DIR *dir, const int spaces,
     2.5                    char* currdir, settings_t* settings) {
     2.6    DIR *subdir;
     2.7 -  char* subdirname;
     2.8    struct dirent *entry;
     2.9 -  int lines, digits, a;
    2.10 +  int lines, a;
    2.11    int lineSum = 0;
    2.12  
    2.13    while ((entry = readdir(dir)) != NULL) {

mercurial