give a warning to vs give notice

give a warning to

give notice

verb
  • To announce one's intent to leave a job; to inform an employer that one is leaving. 

  • Used other than figuratively or idiomatically: see give, notice. 

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