Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/guard:cf flag is msvc-only #900

Closed
wants to merge 1 commit into from
Closed

Conversation

xantares
Copy link
Contributor

No description provided.

@ci-tester-lunarg
Copy link

Author xantares not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg
Copy link

Author xantares not on autobuild list. Waiting for curator authorization before starting CI build.

message(STATUS "Building vulkaninfo with control flow guard")
target_compile_options(vulkaninfo PRIVATE /guard:cf)
target_link_options(vulkaninfo PRIVATE /guard:cf)
if(MSVC AND NOT MSVC_VERSION LESS 1900)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming this is to fix MINGW?

@juan-lunarg
Copy link
Contributor

Closing in favor of: #902

Since I'm also adding a CI check to prevent this from happening in the future. Thank you @xantares for bringing up this issue.

@juan-lunarg
Copy link
Contributor

@xantares FWIW we are seeing a fair amount of warnings in the newly added MinGW build.

I don't have a MinGW setup to address them so I'll leave it up to you if they are serious.

[1/9] Building C object cube/CMakeFiles/vkcube.dir/cube.c.obj
[2/9] Linking C executable cube\vkcube.exe
[3/9] Building RC object vulkaninfo/CMakeFiles/vulkaninfo.dir/vulkaninfo.rc.obj
[4/9] Building CXX object cube/CMakeFiles/vkcubepp.dir/cube.cpp.obj
[5/9] Building CXX object vulkaninfo/CMakeFiles/vulkaninfo.dir/vulkaninfo.cpp.obj
In file included from D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/generated/vulkaninfo.hpp:27,
                 from D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.cpp:33:
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:132:93: warning: 'dllimport' attribute ignored [-Wattributes]
  132 | using PFN_AdjustWindowRect = WINUSERAPI BOOL(WINAPI *)(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL);
      |                                                                                             ^
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:135:70: warning: 'dllimport' attribute ignored [-Wattributes]
  135 |                                                       _In_opt_ LPVOID);
      |                                                                      ^
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:136:103: warning: 'dllimport' attribute ignored [-Wattributes]
  136 | using PFN_DefWindowProcA = WINUSERAPI LRESULT(WINAPI *)(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM);
      |                                                                                                       ^
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:137:62: warning: 'dllimport' attribute ignored [-Wattributes]
  137 | using PFN_DestroyWindow = WINUSERAPI BOOL(WINAPI *)(_In_ HWND);
      |                                                              ^
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:138:81: warning: 'dllimport' attribute ignored [-Wattributes]
  138 | using PFN_LoadIconA = WINUSERAPI HICON(WINAPI *)(_In_opt_ HINSTANCE, _In_ LPCSTR);
      |                                                                                 ^
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:139:80: warning: 'dllimport' attribute ignored [-Wattributes]
  139 | using PFN_RegisterClassExA = WINUSERAPI ATOM(WINAPI *)(_In_ CONST WNDCLASSEXA *);
      |                                                                                ^
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.cpp: In function 'int main(int, char**)':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.cpp:1126:56: warning: statement has no effect [-Wunused-value]
 1126 |     _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
      |                                                        ^
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'bool User32Handles::load_function(T&, const char*) [with T = int (*)(tagRECT*, long unsigned int, int)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:168:27:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:180:28: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'int (*)(tagRECT*, long unsigned int, int)' [-Wcast-function-type]
  180 |         function_pointer = reinterpret_cast<T>(GetProcAddress(user32DllHandle, function_name));
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'bool User32Handles::load_function(T&, const char*) [with T = HWND__* (*)(long unsigned int, const char*, const char*, long unsigned int, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:169:27:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:180:28: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'HWND__* (*)(long unsigned int, const char*, const char*, long unsigned int, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'bool User32Handles::load_function(T&, const char*) [with T = long long int (*)(HWND__*, unsigned int, long long unsigned int, long long int)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:170:27:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:180:28: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'long long int (*)(HWND__*, unsigned int, long long unsigned int, long long int)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'bool User32Handles::load_function(T&, const char*) [with T = int (*)(HWND__*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:171:27:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:180:28: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'int (*)(HWND__*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'bool User32Handles::load_function(T&, const char*) [with T = HICON__* (*)(HINSTANCE__*, const char*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:172:27:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:180:28: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'HICON__* (*)(HINSTANCE__*, const char*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'bool User32Handles::load_function(T&, const char*) [with T = short unsigned int (*)(const tagWNDCLASSEXA*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:173:27:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:180:28: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'short unsigned int (*)(const tagWNDCLASSEXA*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(const VkInstanceCreateInfo*, const VkAllocationCallbacks*, VkInstance_T**)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:365:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(const VkInstanceCreateInfo*, const VkAllocationCallbacks*, VkInstance_T**)' [-Wcast-function-type]
  439 |         func_dest = reinterpret_cast<T>(GetProcAddress(library, func_name));
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkInstance_T*, const VkAllocationCallbacks*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:366:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkInstance_T*, const VkAllocationCallbacks*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(VkInstance_T*, unsigned int*, VkPhysicalDevice_T**)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:367:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(VkInstance_T*, unsigned int*, VkPhysicalDevice_T**)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceFeatures*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:368:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceFeatures*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, VkFormat, VkFormatProperties*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:369:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, VkFormat, VkFormatProperties*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(VkPhysicalDevice_T*, VkFormat, VkImageType, VkImageTiling, unsigned int, unsigned int, VkImageFormatProperties*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:370:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(VkPhysicalDevice_T*, VkFormat, VkImageType, VkImageTiling, unsigned int, unsigned int, VkImageFormatProperties*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceProperties*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:371:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceProperties*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, unsigned int*, VkQueueFamilyProperties*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:372:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, unsigned int*, VkQueueFamilyProperties*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceMemoryProperties*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:373:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceMemoryProperties*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (* (*)(VkInstance_T*, const char*))()]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:374:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (* (*)(VkInstance_T*, const char*))()' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (* (*)(VkDevice_T*, const char*))()]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:375:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (* (*)(VkDevice_T*, const char*))()' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(VkPhysicalDevice_T*, const VkDeviceCreateInfo*, const VkAllocationCallbacks*, VkDevice_T**)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:376:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(VkPhysicalDevice_T*, const VkDeviceCreateInfo*, const VkAllocationCallbacks*, VkDevice_T**)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkDevice_T*, const VkAllocationCallbacks*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:377:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkDevice_T*, const VkAllocationCallbacks*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(const char*, unsigned int*, VkExtensionProperties*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:378:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(const char*, unsigned int*, VkExtensionProperties*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(VkPhysicalDevice_T*, const char*, unsigned int*, VkExtensionProperties*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:379:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(VkPhysicalDevice_T*, const char*, unsigned int*, VkExtensionProperties*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(unsigned int*, VkLayerProperties*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:380:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(unsigned int*, VkLayerProperties*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkDevice_T*, unsigned int, unsigned int, VkQueue_T**)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:381:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkDevice_T*, unsigned int, unsigned int, VkQueue_T**)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(VkDevice_T*, const VkImageCreateInfo*, const VkAllocationCallbacks*, VkImage_T**)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:382:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(VkDevice_T*, const VkImageCreateInfo*, const VkAllocationCallbacks*, VkImage_T**)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkDevice_T*, VkImage_T*, const VkAllocationCallbacks*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:383:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkDevice_T*, VkImage_T*, const VkAllocationCallbacks*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkDevice_T*, VkBuffer_T*, VkMemoryRequirements*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:384:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkDevice_T*, VkBuffer_T*, VkMemoryRequirements*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkDevice_T*, VkImage_T*, VkMemoryRequirements*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:385:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkDevice_T*, VkImage_T*, VkMemoryRequirements*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkDevice_T*, VkImage_T*, unsigned int*, VkSparseImageMemoryRequirements*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:386:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkDevice_T*, VkImage_T*, unsigned int*, VkSparseImageMemoryRequirements*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(unsigned int*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:387:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(unsigned int*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(VkInstance_T*, unsigned int*, VkPhysicalDeviceGroupProperties*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:388:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(VkInstance_T*, unsigned int*, VkPhysicalDeviceGroupProperties*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceFeatures2*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:389:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceFeatures2*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceProperties2*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:390:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceProperties2*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, VkFormat, VkFormatProperties2*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:391:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, VkFormat, VkFormatProperties2*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, unsigned int*, VkQueueFamilyProperties2*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:392:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, unsigned int*, VkQueueFamilyProperties2*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceMemoryProperties2*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:393:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkPhysicalDevice_T*, VkPhysicalDeviceMemoryProperties2*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = void (*)(VkInstance_T*, VkSurfaceKHR_T*, const VkAllocationCallbacks*)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:394:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'void (*)(VkInstance_T*, VkSurfaceKHR_T*, const VkAllocationCallbacks*)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = VkResult (*)(VkInstance_T*, const VkWin32SurfaceCreateInfoKHR*, const VkAllocationCallbacks*, VkSurfaceKHR_T**)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:419:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VkResult (*)(VkInstance_T*, const VkWin32SurfaceCreateInfoKHR*, const VkAllocationCallbacks*, VkSurfaceKHR_T**)' [-Wcast-function-type]
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h: In instantiation of 'void VkDll::Load(T&, const char*) [with T = unsigned int (*)(VkPhysicalDevice_T*, unsigned int)]':
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:420:13:   required from here
D:/a/Vulkan-Tools/Vulkan-Tools/vulkaninfo/vulkaninfo.h:439:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'unsigned int (*)(VkPhysicalDevice_T*, unsigned int)' [-Wcast-function-type]
[6/9] Linking CXX executable cube\vkcubepp.exe
[7/9] Linking CXX executable vulkaninfo\vulkaninfo.exe
[8/9] Building CXX object icd/CMakeFiles/VkICD_mock_icd.dir/mock_icd.cpp.obj
[9/9] Linking CXX shared module icd\libVkICD_mock_icd.dll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants