From ff7dbb1ce9b26be14ddb01a8214e7da36b8d534b Mon Sep 17 00:00:00 2001 From: PancakeTAS Date: Sat, 25 Apr 2026 22:31:31 +0200 Subject: [PATCH] feat(bindless): Hide unknown warning options --- CMakeLists.txt | 1 + lsfg-vk-backend/src/modules/library/dll.cpp | 1 - lsfg-vk-backend/src/modules/pipeline/signature/helpers.hpp | 1 - lsfg-vk-backend/src/utility/pipelines.cpp | 1 - lsfg-vk-layer/CMakeLists.txt | 1 - lsfg-vk-layer/src/entrypoint.cpp | 1 - lsfg-vk-ui/CMakeLists.txt | 1 - 7 files changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a2af9a..ea23caa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") add_compile_options( # By default, enable all warnings -Weverything + -Wno-unknown-warning-option # Some warnings are incompatible with each other -Wno-pre-c++20-compat-pedantic -Wno-c++98-compat-pedantic diff --git a/lsfg-vk-backend/src/modules/library/dll.cpp b/lsfg-vk-backend/src/modules/library/dll.cpp index 8e13f50..9883b82 100644 --- a/lsfg-vk-backend/src/modules/library/dll.cpp +++ b/lsfg-vk-backend/src/modules/library/dll.cpp @@ -72,7 +72,6 @@ namespace { }; #pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunknown-warning-option" #pragma clang diagnostic ignored "-Wunsafe-buffer-usage-in-container" /// Safely cast a vector to a pointer of type T template diff --git a/lsfg-vk-backend/src/modules/pipeline/signature/helpers.hpp b/lsfg-vk-backend/src/modules/pipeline/signature/helpers.hpp index 91b743e..b0f628b 100644 --- a/lsfg-vk-backend/src/modules/pipeline/signature/helpers.hpp +++ b/lsfg-vk-backend/src/modules/pipeline/signature/helpers.hpp @@ -18,7 +18,6 @@ namespace lsfgvk::pipeline { template class inplace_vector { #pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunknown-warning-option" #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" public: // Constructors diff --git a/lsfg-vk-backend/src/utility/pipelines.cpp b/lsfg-vk-backend/src/utility/pipelines.cpp index 3587af9..a1e853b 100644 --- a/lsfg-vk-backend/src/utility/pipelines.cpp +++ b/lsfg-vk-backend/src/utility/pipelines.cpp @@ -18,7 +18,6 @@ namespace { /// Build the pipeline signature consteval PipelineSignature buildPipelineSignature(bool perf) { #pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunknown-warning-option" #pragma clang diagnostic ignored "-Wshadow" PipelineSignatureBuilder s; diff --git a/lsfg-vk-layer/CMakeLists.txt b/lsfg-vk-layer/CMakeLists.txt index 0413479..f005c3b 100644 --- a/lsfg-vk-layer/CMakeLists.txt +++ b/lsfg-vk-layer/CMakeLists.txt @@ -10,7 +10,6 @@ target_link_libraries(lsfg-vk-layer PUBLIC lsfg-vk-backend) target_compile_options(lsfg-vk-layer PRIVATE - -Wno-unknown-warning-option -Wno-unsafe-buffer-usage) # Array indexing set_target_properties(lsfg-vk-layer PROPERTIES diff --git a/lsfg-vk-layer/src/entrypoint.cpp b/lsfg-vk-layer/src/entrypoint.cpp index 6256b9f..51e08ff 100644 --- a/lsfg-vk-layer/src/entrypoint.cpp +++ b/lsfg-vk-layer/src/entrypoint.cpp @@ -349,7 +349,6 @@ namespace { VkResult myvkQueuePresentKHR(VkQueue queue, const VkPresentInfoKHR* info) { #pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunknown-warning-option" #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" VkResult result = VK_SUCCESS; diff --git a/lsfg-vk-ui/CMakeLists.txt b/lsfg-vk-ui/CMakeLists.txt index edd23c1..39602ea 100644 --- a/lsfg-vk-ui/CMakeLists.txt +++ b/lsfg-vk-ui/CMakeLists.txt @@ -28,7 +28,6 @@ set_target_properties(lsfg-vk-ui PROPERTIES AUTOUIC ON) target_compile_options(lsfg-vk-ui PRIVATE # QT-codegen warnings - -Wno-unknown-warning-option -Wno-ctad-maybe-unsupported -Wno-unsafe-buffer-usage-in-libc-call -Wno-global-constructors