[warnings][Caffe2] Suppress warnings in non-c10 headers (#71370)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71370
Round out suppressing warnings in `caffe2` headers
Test Plan: CI check
Reviewed By: r-barnes
Differential Revision: D33613084
fbshipit-source-id: 9306d480bd796aeae4d887ad26b6ddc2c571c9e4