summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/stubhal.cpp
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2016-07-22 10:36:33 +0800
committer Chia-I Wu <olv@google.com> 2016-07-22 06:55:29 +0000
commit359d801bbda3b7ed96e23bd6ff8a633e98197746 (patch)
treefee8d001d12db991ef28665b13e4bad6ab1e404d /vulkan/libvulkan/stubhal.cpp
parentfde0beac8fa8c9a76732756424a298ae6e2c7498 (diff)
libvulkan: Fix for -Wcast-calling-convention
It should be harmless, as NoOp does not use any argument and should never be reached. Bug: 30290462 Change-Id: I0592c3ce10c510713525b5aa0bd38a2f9adc5898
Diffstat (limited to 'vulkan/libvulkan/stubhal.cpp')
-rw-r--r--vulkan/libvulkan/stubhal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vulkan/libvulkan/stubhal.cpp b/vulkan/libvulkan/stubhal.cpp
index a74d3708e0..869317bcb9 100644
--- a/vulkan/libvulkan/stubhal.cpp
+++ b/vulkan/libvulkan/stubhal.cpp
@@ -43,7 +43,7 @@ static std::mutex g_instance_mutex;
static std::bitset<kMaxInstances> g_instance_used(false);
static std::array<hwvulkan_dispatch_t, kMaxInstances> g_instances;
-[[noreturn]] void NoOp() {
+[[noreturn]] VKAPI_ATTR void NoOp() {
LOG_ALWAYS_FATAL("invalid stub function called");
}