Fix -Wshadow warning for DOMWrapperWorld enumerations
New Clang versions started taking enumerations into account for the -Wshadow warning:
../../third_party/blink/renderer/platform/bindings/dom_wrapper_world.h:62:5:
warning: declaration shadows a variable in namespace 'blink' [-Wshadow]
kEmbedderWorldIdLimit = IsolatedWorldId::kEmbedderWorldIdLimit,
^
../../third_party/blink/public/platform/web_isolated_world_ids.h:12:3: note:
previous declaration is here
kEmbedderWorldIdLimit = (1 << 29),
^
../../third_party/blink/renderer/platform/bindings/dom_wrapper_world.h:63:5:
warning: declaration shadows a variable in namespace 'blink' [-Wshadow]
kIsolatedWorldIdLimit = IsolatedWorldId::kIsolatedWorldIdLimit,
^
../../third_party/blink/public/platform/web_isolated_world_ids.h:16:3: note:
previous declaration is here
kIsolatedWorldIdLimit,
^
Bug: 895475
Change-Id: Idb37a14a6d7ca92b1e6bfa1d2fa3f42ffe64fe38
Reviewed-on: https://chromium-review.googlesource.com/c/1283024
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by:
Yuki Shiino <yukishiino@chromium.org>
Reviewed-by:
Kentaro Hara <haraken@chromium.org>
Reviewed-by:
Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600141}
Showing
Please register or sign in to comment