If you heard the warning in your dream, then such dream shows the issues in which the consideration must be paid. The warning that has been given to you also shows the things that must be reconsidered. If you were the one who gave a warning to someone, then such dream shows your ability to see things that might happen in the future. Make sure you share all of these things.
Read more about dreaming of Warning in other dream meanings interpretations.