Disable loop warnings and include warnings, clang dislikes them
This commit is contained in:
parent
bf80501888
commit
a158ac4585
1 changed files with 2 additions and 3 deletions
5
wscript
5
wscript
|
@ -267,16 +267,15 @@ def configure (conf):
|
||||||
elif debug_level == 'full':
|
elif debug_level == 'full':
|
||||||
# -Wdeclaration-after-statement
|
# -Wdeclaration-after-statement
|
||||||
# -Wmissing-declarations -Wmissing-prototypes
|
# -Wmissing-declarations -Wmissing-prototypes
|
||||||
# -Wwrite-strings
|
# -Wwrite-strings -Wunsafe-loop-optimizations -Wmissing-include-dirs
|
||||||
conf.env.append_value ('CCFLAGS',
|
conf.env.append_value ('CCFLAGS',
|
||||||
'-Wall -Wextra -O1 -g '
|
'-Wall -Wextra -O1 -g '
|
||||||
'-Waggregate-return -Wno-unused-parameter '
|
'-Waggregate-return -Wno-unused-parameter '
|
||||||
'-Wno-missing-field-initializers '
|
'-Wno-missing-field-initializers '
|
||||||
'-Wunsafe-loop-optimizations '
|
|
||||||
'-Wredundant-decls -Wmissing-noreturn '
|
'-Wredundant-decls -Wmissing-noreturn '
|
||||||
'-Wshadow -Wpointer-arith -Wcast-align '
|
'-Wshadow -Wpointer-arith -Wcast-align '
|
||||||
'-Winline -Wformat-security '
|
'-Winline -Wformat-security '
|
||||||
'-Winit-self -Wmissing-include-dirs -Wundef '
|
'-Winit-self -Wundef '
|
||||||
'-Wmissing-format-attribute -Wnested-externs '
|
'-Wmissing-format-attribute -Wnested-externs '
|
||||||
'-DG_ENABLE_DEBUG'.split ())
|
'-DG_ENABLE_DEBUG'.split ())
|
||||||
elif debug_level != 'none':
|
elif debug_level != 'none':
|
||||||
|
|
Loading…
Reference in a new issue