indiscretion vs warning

indiscretion

noun
  • The quality or state of being indiscreet; lack of discretion 

  • An indiscreet or imprudent act; indiscreet behavior. 

  • A brief sexual liaison. 

warning

noun
  • Something spoken or written that is intended to warn. 

  • The action of the verb warn; an instance of warning someone. 

intj
  • Used to warn of danger in signs and notices. 

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