Просмотр исходного кода

Merge pull request #5306 from MerryMage/ignore-library-Open

vulkan_library: Common::DynamicLibrary::Open is [[nodiscard]]
Morph 5 лет назад
Родитель
Сommit
bcb702fa3e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/video_core/vulkan_common/vulkan_library.cpp

+ 1 - 1
src/video_core/vulkan_common/vulkan_library.cpp

@@ -20,7 +20,7 @@ Common::DynamicLibrary OpenLibrary() {
         // Use the libvulkan.dylib from the application bundle.
         // Use the libvulkan.dylib from the application bundle.
         const std::string filename =
         const std::string filename =
             Common::FS::GetBundleDirectory() + "/Contents/Frameworks/libvulkan.dylib";
             Common::FS::GetBundleDirectory() + "/Contents/Frameworks/libvulkan.dylib";
-        library.Open(filename.c_str());
+        void(library.Open(filename.c_str()));
     }
     }
 #else
 #else
     std::string filename = Common::DynamicLibrary::GetVersionedFilename("vulkan", 1);
     std::string filename = Common::DynamicLibrary::GetVersionedFilename("vulkan", 1);