How to get Intellij Idea to display compilation warnings?

Solution 1:

Make sure that "Hide Warnings" option is disabled in the Messages panel on the left:

Hide Warnings