The Purpose of Warnings

Identify one necessary factor to make a warning legitimate? Identify another necessary ingredient for a warning to be legitimate? What is an example of an illegitimate warning?