Skip to content
⌘ NSIS Forum Archive

How to disable some warnings

3 posts

TrifonovS#

How to disable some warnings

Hi,

I need to disable some warnings, given during the compilation of my scripts. It is boring to see always messages like "install function "..." not referenced - zeroing code ...", because I know this and I use this function in another script, so I can't remove it. How can I disable a defined warning?
kichik#
There is no way to disable this warning. You could, however, put those functions away in separate header files and only include those header files if you need them in the script.
Zinthose#
You can also use pre-compiler directives to use defines to enable functions that are needed.

    ## Uncomment to Enable "MyFunction"
    ; !define Enable_MyFunction
    !ifdef Enable_MyFunction
        Function MyFunction 
            ## Do Stuff
        FunctionEnd
    !endif