red flag vs warning device

red flag

noun
  • A signal that the race must be stopped immediately (and possibly restarted). 

  • A cue, warning, or alert; a sign or signal that something is wrong. 

  • red rag 

  • A common symbol, usually in the form of a banner, for leftist revolutionary ideologies, especially socialism. 

  • In the United Kingdom and some other countries, a flag formerly used by a railway guard to warn the driver not to start the train. 

warning device

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