turn on -Wall with a few exceptions in Bazel build
Summary:
We add the following exceptions:
* sign-compare: this is heavily violated in our codebase
* unknown-pragmas: we use this intentionally for some loop unrolling
in CUDA
Because they are included in -Wall by default, we remove the following
warnings from our explicit list:
* unused-function
* unused-variable
Test Plan: Rely on CI.
Reviewers: alband, seemethere
Subscribers:
Tasks:
Tags:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79306
Approved by: https://github.com/malfet
Author
Michael Andreas Dagitses