From 789c1a663effb0d917e4d274daa591fbffb39124 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 20 Jun 2014 15:13:20 -0400 Subject: [PATCH] abstract_compiler: add some flags to teach clang to be more silent gcc also accepts these flags, so it is OK. Signed-off-by: Jean Privat --- src/abstract_compiler.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abstract_compiler.nit b/src/abstract_compiler.nit index 99b84be..031be97 100644 --- a/src/abstract_compiler.nit +++ b/src/abstract_compiler.nit @@ -323,7 +323,7 @@ class MakefileToolchain var ost = toolcontext.opt_stacktrace.value if ost == "libunwind" or ost == "nitstack" then linker_options.add("-lunwind") - makefile.write("CC = ccache cc\nCFLAGS = -g -O2\nCINCL = {cc_includes}\nLDFLAGS ?= \nLDLIBS ?= -lm -lgc {linker_options.join(" ")}\n\n") + makefile.write("CC = ccache cc\nCFLAGS = -g -O2 -Wno-unused-value -Wno-switch\nCINCL = {cc_includes}\nLDFLAGS ?= \nLDLIBS ?= -lm -lgc {linker_options.join(" ")}\n\n") makefile.write("all: {outpath}\n\n") var ofiles = new Array[String] -- 1.7.9.5