Modify ALLOW_UNUSED to allow enabling unused local warnings on MSVC.
commit99867ef78bf14ad37e263860248d0a2d61b51a73
authorpkasting <pkasting@chromium.org>
Thu, 16 Oct 2014 23:49:24 +0000 (16 16:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Oct 2014 23:49:45 +0000 (16 23:49 +0000)
tree93d5cff10df320d5254bf90bb5c6916416c601e5
parent74d6a7e12701d17e427bf30ccc48dfeec8a07806
Modify 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

Review URL: https://codereview.chromium.org/650393002

Cr-Commit-Position: refs/heads/master@{#300014}
base/compiler_specific.h
base/logging_unittest.cc
base/mac/foundation_util_unittest.mm
base/tuple_unittest.cc
cc/quads/draw_quad_unittest.cc
ipc/ipc_message_macros.h
ppapi/proxy/dispatch_reply_message.h
ui/gl/generate_bindings.py