give a warning of vs warn of

give a warning of

warn of

How often have the words give a warning of and warn of occurred in a corpus of books? (source: Google Ngram Viewer )