https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98021
--- Comment #2 from eggert at cs dot ucla.edu --- (In reply to Andrew Pinski from comment #1) > so you are asking not to show the source file for #warning ? That's the possibility I suggested, yes. Another possibility would be to not show the diagnostic, and just show the source file. The point is to avoid the duplication. > I don't see why this warning should be treated as any different from any > other warning. In other warnings, it's useful to show both the diagnostic and the source code line because they're different. For '#warning "xxx"' they're the same so there's no point to showing both and there is a downside that the output is redundant and confusing.