move -fpermissive out of if-block