Revert "Remove warning: condition with empty body."

This reverts commit f397f5ac3fc198662f088725e9ec12ae8b02ba9c.