diff options
author | brianosman <brianosman@google.com> | 2016-06-14 04:53:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-14 04:53:09 -0700 |
commit | 0bbc3713de2f51c17fad935ccfd87dd68c7062ef (patch) | |
tree | 53c421828d16ded45447cee652c9cdd0bb6a5eaf /src | |
parent | 401cf48631acd9a24a542f9bd6b6bb1c16168070 (diff) |
Fix compile error (uninitialized variable use)
switch is already handling all cases, but some compilers don't care.
This suppresses errors about potentially using vkLoadOp and vkStoreOp
uninitialized.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2068523002
Review-Url: https://codereview.chromium.org/2068523002
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/vk/GrVkGpuCommandBuffer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkGpuCommandBuffer.cpp b/src/gpu/vk/GrVkGpuCommandBuffer.cpp index e9a13d4517..f6104a3308 100644 --- a/src/gpu/vk/GrVkGpuCommandBuffer.cpp +++ b/src/gpu/vk/GrVkGpuCommandBuffer.cpp @@ -40,6 +40,11 @@ void get_vk_load_store_ops(GrGpuCommandBuffer::LoadAndStoreOp op, *loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; *storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; break; + default: + SK_ABORT("Invalid LoadAndStoreOp"); + *loadOp = VK_ATTACHMENT_LOAD_OP_LOAD; + *storeOp = VK_ATTACHMENT_STORE_OP_STORE; + break; } } |