It's a good idea to turn on hint and warning messages specially when writing and compiling your own code. Although some of these hints and warnings can be ignored, most of them -- if nothing else -- will remind you of things you could do to improve your code.
Go to "Project | Options"
Change to the "Compiler" tab
Make sure "Show hints" and "Show warnings" check boxes are checked