How do I suppress hints when using the Delphi command-line compilers? (I.e. dcc32.exe, dcc64.exe, dcclinux64.exe etc.)
I know that {$HINTS OFF}
can be used in the source code to turn hints off, but its scope is local and affects only the code in the unit where is placed. I would want a global option that affects the whole compilation.
I also know that when compiling in the IDE, one can turn hints off globally in Project Options > Building > Delphi Compiler > Hints and Warnings > Output hints (True/False). I would need the same option in the command-line compilers.
Warnings can be suppressed using the -W-[WARNING]
option, but is there anything similar for hints?
Running DCC32.EXE shows:
Show Hints (use -H+ or no option at all, as it is the default behavior):
Hide hints (use -H-):