Fix test failure on Windows.
[JENKINS-11799] Classify warnings by gcc 4.6 or later.