From a68467d0fd06013e419cccb3abc0677245b80fd8 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Thu, 27 Nov 2014 22:16:30 +0100 Subject: [PATCH] Adding -Wall to command line and fixing warnings. --- Makefile | 2 +- Monicelli.ll | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9069950..845029c 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/Monicelli.ll b/Monicelli.ll index 7384bfc..f1ca7c7 100644 --- a/Monicelli.ll +++ b/Monicelli.ll @@ -12,6 +12,7 @@ using namespace monicelli; %} %option noyywrap +%option nounput DIGIT [0-9] HEXDIGIT [0-9a-zA-Z]