If there is hint or warning the compiler cancels the compilation

Posted on

Question :

I would like to compile an application and if it has some Hint or Warning , execution is suspended, giving rise to an error.

Does anyone know if it’s possible?

Warning’s can be treated as errors. But is there anything that could make Hint’s also be treated as errors?


Answer :

Whenever you click the Shift + F9 keys used to make a Build project, an Messages box is created where you can view the hint and% with% of the project, whenever there are ERROR Delphi does not let the project run.

Example with Hint :








Yes it is possible,

Access Project, Option, Delphi Compiler … and in Hints and Warnings you configure it.

Ex. Deprected Symbol, when there is a declared and unused variable, it generates a HINT, you can configure it to be an ERROR.

This way the Application compilation did not happen!

Obs. You can configure Release for this and leave Debug like this. That way the Final Application will be guaranteed without Hints and Warnings.


Leave a Reply

Your email address will not be published. Required fields are marked *