From 1896e03fca1ec4fa674caa4edce581b3cb5cf767 Mon Sep 17 00:00:00 2001 From: TheNumbat Date: Sat, 28 Sep 2024 15:11:45 -0400 Subject: [PATCH] fix extension error --- rvk/CMakeLists.txt | 2 +- rvk/instance.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rvk/CMakeLists.txt b/rvk/CMakeLists.txt index 630529e..a516b9b 100644 --- a/rvk/CMakeLists.txt +++ b/rvk/CMakeLists.txt @@ -93,7 +93,7 @@ elseif(CLANG) message(FATAL_ERROR "Unsupported Clang version: only 17+ is supported.") endif() - target_compile_options(rvk PRIVATE -Wall -Wextra -fno-exceptions -fno-rtti) + target_compile_options(rvk PRIVATE -Wall -Wextra -fno-exceptions -fno-rtti -Wno-missing-field-initializers) else() message(FATAL_ERROR "Unsupported compiler: only MSVC and Clang are supported.") endif() diff --git a/rvk/instance.cpp b/rvk/instance.cpp index dc65111..5ca065f 100644 --- a/rvk/instance.cpp +++ b/rvk/instance.cpp @@ -352,7 +352,7 @@ Arc Instance::physical_device(VkSurfaceKHR surface, bool if(device->supports_extension(String_View{extension})) { info("[rvk] Found extension: %", String_View{extension}); } else { - info("[rvk] Device does not support extension %", extension); + info("[rvk] Device does not support extension %", String_View{extension}); supported = false; break; } @@ -363,7 +363,7 @@ Arc Instance::physical_device(VkSurfaceKHR surface, bool info("[rvk] Found ray tracing extension: %", String_View{extension}); } else { info("[rvk] Device does not support ray tracing extension %", - extension); + String_View{extension}); supported = false; break; }