Due to a depdency chain that isn't really maintained anymore, these warnings aren't getting fixed anytime soon and they clog up the build logs for PyTorch (see https://github.com/pytorch/pytorch/issues/33760). This adds an option so they can be disabled by users.
a134dd5d4cee80cce15db81a72e7f929d71dd413 removes deprecated attribute from function pointer declarations, and this should be enough to avoid warnings in codes that don't use deprecated API.
Due to a depdency chain that isn't really maintained anymore, these warnings aren't getting fixed anytime soon and they clog up the build logs for PyTorch (see https://github.com/pytorch/pytorch/issues/33760). This adds an option so they can be disabled by users.