Bazel build has warnings (#46233)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/43212
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46233
Reviewed By: bdhirsh
Differential Revision: D24278560
Pulled By: ezyang
fbshipit-source-id: d7e1c7e97f57f6f0dcf2ff966b795a6d13b07e95