Correct gcc warning check