Add compiler condition to remove warnings when not using legacy deployment.
Add compiler condition to remove warnings when not using legacy deployment.

zhaoguohui/SnapKit,duanhjlt/SnapKit,duanhjlt/SnapKit,Rdxer/SnapKit,SnapKit/SnapKit,SnapKit/SnapKit,zhaoguohui/SnapKit,Rdxer/SnapKit