Enable -Wsizeof-array-div and -Wsizeof-pointer-divcompiler.
Also, replace -Wmemset-transposed-args with -Wsuspicious-memaccess. The latter automatically enables the former and a few other warnings.
Paths
| Differential D133783
[compiler-rt][builtins] Enable more warnings in add_security_warnings ClosedPublic Authored by ahatanak on Sep 13 2022, 9:02 AM.
Details Summary Enable -Wsizeof-array-div and -Wsizeof-pointer-divcompiler. Also, replace -Wmemset-transposed-args with -Wsuspicious-memaccess. The latter automatically enables the former and a few other warnings.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 14 2022, 11:25 AM Closed by commit rG157f6fc8ecf6: [compiler-rt][builtins] Enable more warnings in add_security_warnings (authored by ahatanak). · Explain WhySep 14 2022, 12:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 459770 compiler-rt/cmake/Modules/CompilerRTUtils.cmake
compiler-rt/cmake/config-ix.cmake
|