On 13.08.2019 17:45, Maria Jan Matejka wrote:
define myvar = false;

function something () {
     if myvar then {
         return false;
     }

     return true;
}

protocol device DEVICE {

}

Could this be because of the new filter code or something else?

Hello

Thanks for bugreport. Yes, it is the new filter code, most likely
it is a bug in handling of statically eliminable (constant-false)
if statements without else branch.

Similar issue also happens for empty blocks:

   if true then { }


What about the attached patch?
Maria


Hi,

I can confirm that the patch works for my setup.

Thank you,

Radu

Reply via email to