|
|
@ -301,7 +301,6 @@ def configure(conf): |
|
|
|
'-Werror=sizeof-pointer-div', |
|
|
|
'-Werror=sizeof-pointer-div', |
|
|
|
'-Werror=strict-aliasing', |
|
|
|
'-Werror=strict-aliasing', |
|
|
|
'-Werror=string-compare', |
|
|
|
'-Werror=string-compare', |
|
|
|
'-Werror=stringop-overflow', |
|
|
|
|
|
|
|
'-Werror=tautological-compare', |
|
|
|
'-Werror=tautological-compare', |
|
|
|
'-Werror=use-after-free=3', |
|
|
|
'-Werror=use-after-free=3', |
|
|
|
'-Werror=unsequenced', # clang's version of -Werror=sequence-point |
|
|
|
'-Werror=unsequenced', # clang's version of -Werror=sequence-point |
|
|
@ -317,6 +316,10 @@ def configure(conf): |
|
|
|
# '-Wdouble-promotion', |
|
|
|
# '-Wdouble-promotion', |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# buggy compiler on NSW |
|
|
|
|
|
|
|
if conf.env.DEST_OS != 'nswitch': |
|
|
|
|
|
|
|
opt_flags += [ '-Werror=stringop-overflow' ] |
|
|
|
|
|
|
|
|
|
|
|
opt_cflags = [ |
|
|
|
opt_cflags = [ |
|
|
|
'-Werror=declaration-after-statement', |
|
|
|
'-Werror=declaration-after-statement', |
|
|
|
'-Werror=enum-conversion', |
|
|
|
'-Werror=enum-conversion', |
|
|
|