31
31
def __add_gcc_flags__(ctx):
32
32
ctx.env.CFLAGS += ["-Wall", "-Wundef", "-Wmissing-prototypes", "-Wshadow",
33
33
"-Wno-switch", "-Wno-parentheses", "-Wpointer-arith",
34
"-Wredundant-decls", "-Wno-pointer-sign",
35
"-Werror=implicit-function-declaration",
36
"-Wno-error=deprecated-declarations",
37
"-Wno-error=unused-function" ]
38
__test_and_add_flags__(ctx, ["-Wempty-body"])
39
__test_and_add_flags__(ctx, ["-Wdisabled-optimization"])
40
__test_and_add_flags__(ctx, ["-Wstrict-prototypes"])
41
__test_and_add_flags__(ctx, ["-Wno-format-zero-length"])
34
"-Wredundant-decls", "-Wno-pointer-sign"]
35
__test_and_add_flags__(ctx, ["-Werror=implicit-function-declaration",
36
"-Wno-error=deprecated-declarations",
37
"-Wno-error=unused-function",
39
"-Wdisabled-optimization",
40
"-Wstrict-prototypes",
41
"-Wno-format-zero-length"])
43
43
def __add_clang_flags__(ctx):
44
44
ctx.env.CFLAGS += ["-Wno-logical-op-parentheses", "-fcolor-diagnostics",