DescriptionModify ALLOW_UNUSED to allow enabling unused local warnings on MSVC.
This splits the macro into two:
int a = 1;
ALLOW_UNUSED_LOCAL(a);
and
typedef Foo Bar ALLOW_UNUSED_TYPE;
void foo() ALLOW_UNUSED_TYPE; // ALLOW_UNUSED_TYPE_OR_FUNC seemed too verbose
This matches changes that have already been made in Blink.
BUG=81439
TEST=none
TBR=ben
Committed: https://crrev.com/99867ef78bf14ad37e263860248d0a2d61b51a73
Cr-Commit-Position: refs/heads/master@{#300014}
Patch Set 1 #Patch Set 2 : Remove extraneous use #
Total comments: 2
Patch Set 3 : Review comments #Patch Set 4 : Try removing the attribute entirely #Patch Set 5 : Revert review comment #
Total comments: 2
Messages
Total messages: 25 (8 generated)
|