Better checking which warnings need to be disabled due to gcc bugs.