Adding -Wall to command line and fixing warnings.

This commit is contained in:
Stefano Sanfilippo 2014-11-27 22:16:30 +01:00
parent 9184c45297
commit a68467d0fd
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
compile:
bison --verbose -d Monicelli.y
flex -P mc Monicelli.ll
g++ -std=c++11 -DYYDEBUG=0 Monicelli.tab.c lex.mc.c Nodes.cpp main.cpp -o mcc
g++ -Wall -std=c++11 -DYYDEBUG=0 Monicelli.tab.c lex.mc.c Nodes.cpp main.cpp -o mcc
rm Monicelli.tab.* lex.mc.c
graph:

View File

@ -12,6 +12,7 @@ using namespace monicelli;
%}
%option noyywrap
%option nounput
DIGIT [0-9]
HEXDIGIT [0-9a-zA-Z]