aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJuan Ramos <[email protected]>2023-10-12 17:19:38 -0600
committerJuan Ramos <[email protected]>2023-10-12 17:23:05 -0600
commit3fb9d9fde5e8e771a24f7cccf5b13896da743ce4 (patch)
treec513cad85b089b9af505709b4bb07da046d55290
parentbbe0f575ebd6098369f0ac6c6a43532732ed0ba6 (diff)
downloadVulkan-Headers-3fb9d9fde5e8e771a24f7cccf5b13896da743ce4.tar.gz
Vulkan-Headers-3fb9d9fde5e8e771a24f7cccf5b13896da743ce4.zip
ci: Fix -Wdeprecated-non-prototype warnings
Occurs on AppleClang
-rw-r--r--tests/CMakeLists.txt2
-rw-r--r--tests/vk_icd.c4
-rw-r--r--tests/vk_layer.c4
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;
}