We can use “#pragma OPTION: Additional Options” to "partial " of Compiler throughout code.
Syntax
#pragma OPTION ADD [<Handle>] "<Option>"
#pragma OPTION DEL <Handle>
#pragma OPTION DEL ALL
Description
Options are added inside of the source code while compiling a file.
The options given on the command line or in a configuration file cannot be changed in any way.
Additional options are added to the current ones with the ADD command. A handle may be given optionally.
The DEL command either removes all options with a specific handle. It also uses the ALL keyword to remove all added options regardless if they have a handle or not. Note that you only can remove options which were added previously with the OPTION ADD pragma.
All keywords and the handle are case-sensitive.
You can check more information in Compiler_HC12.pdf under your CW install. Search the document with keyword "pragma OPTION".
For example you want disable warning C4443 . you can use below for the section of code
#pragma OPTION ADD handle "-WmsgSd4443"
<.....your code...>
#pragma OPTION DEL ALL
Hope this helps!