From bee1d3a4e8c0d48dc5f77c26963e792f4c3b306c Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Wed, 21 Dec 2016 13:09:59 -0500 Subject: loader: Fix Clang warning in table_ops.h This fixes the following warning: error: cast between incompatible calling conventions 'cdecl' and 'stdcall'; calls through this pointer may abort at runtime This was revelated by building the loader with Clang on Windows in 32-bits mode. In 64-bits this warning doesn't appear, presumably due to different calling conventions. Change-Id: I7018be38859695436487f582f515bfb08ca28e06 --- loader/table_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loader') diff --git a/loader/table_ops.h b/loader/table_ops.h index 13c9ac7e..eecc952a 100644 --- a/loader/table_ops.h +++ b/loader/table_ops.h @@ -29,7 +29,7 @@ #include "loader.h" #include "vk_loader_platform.h" -static VkResult vkDevExtError(VkDevice dev) { +static VkResult VKAPI_CALL vkDevExtError(VkDevice dev) { struct loader_device *found_dev; // The device going in is a trampoline device struct loader_icd_term *icd_term = -- cgit v1.2.3