mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-06 22:53:35 +00:00
Fix unused variable warnings on ChromeOS
Fixes the build on ChromeOS where the #ifdefs there leave some variables unused. Bug: none Change-Id: I7804fd15112e49a6bda1dadcb4137804409d1642 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30463 Commit-Queue: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
8fb131fcd5
commit
aff4c03663
@ -85,6 +85,11 @@ namespace dawn_native { namespace vulkan {
|
|||||||
const VulkanFunctions& fn = backend->GetFunctions();
|
const VulkanFunctions& fn = backend->GetFunctions();
|
||||||
VkInstance instance = backend->GetVkInstance();
|
VkInstance instance = backend->GetVkInstance();
|
||||||
|
|
||||||
|
// May not be used in the platform-specific switches below.
|
||||||
|
DAWN_UNUSED(info);
|
||||||
|
DAWN_UNUSED(fn);
|
||||||
|
DAWN_UNUSED(instance);
|
||||||
|
|
||||||
switch (surface->GetType()) {
|
switch (surface->GetType()) {
|
||||||
#if defined(DAWN_ENABLE_BACKEND_METAL)
|
#if defined(DAWN_ENABLE_BACKEND_METAL)
|
||||||
case Surface::Type::MetalLayer:
|
case Surface::Type::MetalLayer:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user