From a19308a35e88cd53c0d5ac2f26c705f902804658 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Thu, 12 Mar 2026 16:23:05 +1100 Subject: Add reasonable compiler warnings and fix them --- src/physical_device_context.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/physical_device_context.cc') diff --git a/src/physical_device_context.cc b/src/physical_device_context.cc index de63b3d..29b4ca3 100644 --- a/src/physical_device_context.cc +++ b/src/physical_device_context.cc @@ -1,4 +1,5 @@ #include "physical_device_context.hh" + #include #include @@ -44,7 +45,7 @@ PhysicalDeviceContext::PhysicalDeviceContext( vtable.EnumerateDeviceExtensionProperties( physical_device, nullptr, &count, std::data(supported_extensions)); - const auto supported_extension_names = + const auto supported = supported_extensions | std::views::transform( [](const auto& supported) { return supported.extensionName; }) | @@ -52,7 +53,7 @@ PhysicalDeviceContext::PhysicalDeviceContext( return std::ranges::all_of( this->required_extensions, [&](const auto& required_extension) { - return supported_extension_names.contains(required_extension); + return supported.contains(required_extension); }); }(); } -- cgit v1.2.3