remove some spurious warnings fixing (#72352)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/70389
Pull Request resolved: https://github.com/pytorch/pytorch/pull/72352
Reviewed By: jbschlosser
Differential Revision: D34011981
Pulled By: albanD
fbshipit-source-id: 55bedc8a40929bc5b49cb6d7d7d51a3750f2ff27
(cherry picked from commit a6657a9071a48e8f3a8b35a75a06c669ab82d56b)