Adding suport to see warnings at compile time.
I'm not sure if this is added in the correct way, please fix it. As many files generate warnigs, it's inactive by default. To compile with enabled warnings, execute jam like this: $ WARNINGS=true jam git-svn-id: file:///srv/svn/repos/haiku/trunk/current@141 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9bd6befeb5
commit
e5dc2d93a3
17
Jamrules
17
Jamrules
|
@ -26,6 +26,23 @@ if $(METROWERKS) {
|
|||
OBOS_TARGET_DIR ?= "x86" ;
|
||||
}
|
||||
|
||||
# Enable warnings only if WARNINGS is defined
|
||||
# Should be enabled by default later
|
||||
|
||||
if $(WARNINGS) {
|
||||
# For an explanation of the different warning options, see:
|
||||
# http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_2.html
|
||||
# to get even more warnings, add:
|
||||
# -Wwrite-strings (doesn't work well with some Be headers)
|
||||
# -Wundef (dito)
|
||||
# -Wconversion (gets you many warnings about implicit conversions)
|
||||
# -W (gets you even more warnigs)
|
||||
CCFLAGS ?= "-Wall -Wno-multichar -Wmissing-prototypes" ;
|
||||
CCFLAGS += "-Wpointer-arith -Wcast-align -Wsign-compare" ;
|
||||
C++FLAGS ?= "-Wall -Wno-multichar -Wmissing-prototypes -Wno-ctor-dtor-privacy -Woverloaded-virtual" ;
|
||||
C++FLAGS += "-Wpointer-arith -Wcast-align -Wsign-compare" ;
|
||||
}
|
||||
|
||||
KERNEL_CCFLAGS ?= "-Wall -Wno-multichar -Wmissing-prototypes -finline -nostdinc" ;
|
||||
KERNEL_CCFLAGS += "-fno-builtin -D$(OBOS_TARGET_DEFINE) " ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue