give a warning to vs give fair warning to

give a warning to

give fair warning to

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