nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
abstract_compiler: add some flags to teach clang to be more silent
[nit.git]
/
src
/
abstract_compiler.nit
diff --git
a/src/abstract_compiler.nit
b/src/abstract_compiler.nit
index
99b84be
..
031be97
100644
(file)
--- 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")
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]
makefile.write("all: {outpath}\n\n")
var ofiles = new Array[String]