mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-05-10 19:21:42 +00:00
feat(bindless): Hide unknown warning options
This commit is contained in:
parent
9da7c8fdf9
commit
ff7dbb1ce9
7 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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<typename T>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ namespace lsfgvk::pipeline {
|
|||
template<typename T, size_t N>
|
||||
class inplace_vector {
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||
public:
|
||||
// Constructors
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue