In reply to drogoff:
The warning you are getting is from the compiler before the
is_active flag gets set during simulation. When it comes to procedural code the compiler does not know what source code will or will not get executed. It has to generate the machine code to execute everything.
without seeing the actual code, the only thing I can suggest to change the code to make it work in for any setting of
is_active. That might mean changing the interface signal to a wire.