Resolve compiler warnings and udpate CFLAGS
This commit is contained in:
parent
2e7a16299c
commit
f9cb80907b
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -6,7 +6,7 @@ TARGET = slr
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
|
|
||||||
CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall
|
CFLAGS = -Os -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE
|
||||||
|
|
||||||
SRC = slr.c lexer.c parser.c
|
SRC = slr.c lexer.c parser.c
|
||||||
|
|
||||||
|
|
2
lexer.c
2
lexer.c
|
@ -39,7 +39,7 @@ Token *lexer(char *buf)
|
||||||
current_index++;
|
current_index++;
|
||||||
}
|
}
|
||||||
tokens[tokens_index].type = END_OF_TOKENS;
|
tokens[tokens_index].type = END_OF_TOKENS;
|
||||||
tokens[tokens_index].value = '\0';
|
tokens[tokens_index].value = NULL;
|
||||||
return tokens;
|
return tokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue