abstract_compiler: add some flags to teach clang to be more silent
authorJean Privat <jean@pryen.org>
Fri, 20 Jun 2014 19:13:20 +0000 (15:13 -0400)
committerJean Privat <jean@pryen.org>
Fri, 20 Jun 2014 19:13:20 +0000 (15:13 -0400)
gcc also accepts these flags, so it is OK.

Signed-off-by: Jean Privat <jean@pryen.org>

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]