Enable Wtype-limits (#142099)

Since it can detect underflow bugs of unsigned integers.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/142099
Approved by: https://github.com/ezyang
This commit is contained in:
cyy
2024-12-06 08:14:18 +00:00
committed by PyTorch MergeBot
parent 01d7644dc9
commit 5d3622447d

View File

@ -375,7 +375,6 @@ function(torch_compile_options libname)
-Wdeprecated
-Wno-unused-parameter
-Wno-missing-field-initializers
-Wno-type-limits
-Wno-array-bounds
-Wno-unknown-pragmas
-Wno-strict-overflow