Changed GNU GCC detection for warnings
Merged from origin/rovereto