If you want to hide given warnings in a module you can use #IgnoreWarnings: x1, x2 ...
x1 and x2 are the warning numbers.
You can add the line somewhere on top of the module code.
In the case I've illustrated in my first post I should avoid to use your hint, Klaus (elsewhere there may be variables that are really not used), but your is anyway a useful info .