This is an archive of the discontinued LLVM Phabricator instance.

Allow -Wno-gnu to silence GNU extensions related to pointer arithmetic
ClosedPublic

Authored by aaron.ballman on Mar 22 2022, 5:55 AM.

Details

Summary

These diagnostics were added to a diagnostic group, but that diagnostic group was not under -Wgnu. I've now split them into their own diagnostic group that is added both to the original group (so user's currently opting in or out of these should not see a change) and under the -Wgnu group so that -Wno-gnu can be used to disable all GNU extension diagnostics. This fixes Issue 54444.

Diff Detail

Event Timeline

aaron.ballman created this revision.Mar 22 2022, 5:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2022, 5:55 AM
aaron.ballman requested review of this revision.Mar 22 2022, 5:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2022, 5:55 AM
nickdesaulniers accepted this revision.Mar 22 2022, 10:00 AM

TIL about Extension<> and -verify=. Thanks @aaron.ballman !

This revision is now accepted and ready to land.Mar 22 2022, 10:00 AM

Thanks for the review! I've landed in c3fe8ddd8385832fde9f16a261908afbaf9878a4.