Browse Source

wscript: enforce GCC suspicious sizeof operations warnings as errors

pull/2/head
Alibek Omarov 2 years ago
parent
commit
82b6da493a
  1. 3
      wscript

3
wscript

@ -206,6 +206,9 @@ def configure(conf):
'-Werror=implicit-fallthrough=2', # clang incompatible without "=2" '-Werror=implicit-fallthrough=2', # clang incompatible without "=2"
'-Werror=logical-op', '-Werror=logical-op',
'-Werror=write-strings', '-Werror=write-strings',
'-Werror=sizeof-pointer-memaccess',
'-Werror=sizeof-array-div',
'-Werror=sizeof-pointer-div',
# '-Werror=format=2', # '-Werror=format=2',
# '-Wdouble-promotion', # disable warning flood # '-Wdouble-promotion', # disable warning flood
'-Wstrict-aliasing', '-Wstrict-aliasing',

Loading…
Cancel
Save