This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Remove unused variables declared in conditions
ClosedPublic

Authored by hazohelet on Aug 15 2023, 1:08 PM.

Details

Summary

D152495 makes clang warn on unused variables that are declared in conditions like if (int var = init) {}
This patch is an NFC fix to suppress the new warning in llvm,clang,lld builds to pass CI in the above patch.

Diff Detail

Event Timeline

hazohelet created this revision.Aug 15 2023, 1:08 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added subscribers: hoy, wlei, steakhal and 5 others. · View Herald Transcript
hazohelet requested review of this revision.Aug 15 2023, 1:08 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 15 2023, 1:08 PM
MaskRay accepted this revision.Aug 15 2023, 1:21 PM
This revision is now accepted and ready to land.Aug 15 2023, 1:21 PM
This revision was automatically updated to reflect the committed changes.