abstract_compiler: add some flags to teach clang to be more silent
[nit.git] / src / abstract_compiler.nit
index 99b84be..031be97 100644 (file)
@@ -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]