delphiwarningsdelphi-2007

How do I turn specific Delphi warnings and hints off?


In CodeGear Delphi 2007, how can I turn specific warnings and hints off? I am attempting to turn off H2077 - Value assigned to 'varname' never used.


Solution

  • Hints? No specific.

    You'll have to disable them all:

    {$HINTS OFF}
    

    Warnings?

    {$WARN _name_of_warning_ OFF|ON|ERROR}
    

    Check here for a full list