Incorrect interpretation of settings

Useless work was being done when "warning" was enabled and "portability" was not enabled