[#841] Fixed -O3 warnings in the rule engine