From 3fb9d9fde5e8e771a24f7cccf5b13896da743ce4 Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Thu, 12 Oct 2023 17:19:38 -0600 Subject: ci: Fix -Wdeprecated-non-prototype warnings Occurs on AppleClang --- tests/CMakeLists.txt | 2 +- tests/vk_icd.c | 4 ++-- tests/vk_layer.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6b3181e..8af9447 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -34,7 +34,7 @@ if (MSVC) endif() # vk_icd.h -add_executable(vk_icd vk_icd.c) +add_library(vk_icd MODULE vk_icd.c) target_link_libraries(vk_icd PRIVATE Vulkan::Headers) # vk_layer.h diff --git a/tests/vk_icd.c b/tests/vk_icd.c index de29d36..48f5ef8 100644 --- a/tests/vk_icd.c +++ b/tests/vk_icd.c @@ -8,7 +8,7 @@ #include "vulkan/vk_icd.h" -int main() +int square(int i) { - return 0; + return i * i; } diff --git a/tests/vk_layer.c b/tests/vk_layer.c index 490beb3..a87e324 100644 --- a/tests/vk_layer.c +++ b/tests/vk_layer.c @@ -8,7 +8,7 @@ #include "vulkan/vk_layer.h" -int foobar() +int square(int i) { - return 0; + return i * i; } -- cgit v1.2.3