Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Warning Suppression PR #3: Eliminate warnings from third-party headers #4920

Merged
merged 6 commits into from
May 7, 2022
4 changes: 3 additions & 1 deletion cmake/TaichiCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ if (TI_WITH_VULKAN)

target_include_directories(${CORE_LIBRARY_NAME} PRIVATE external/SPIRV-Headers/include)
target_include_directories(${CORE_LIBRARY_NAME} PRIVATE external/SPIRV-Reflect)
target_include_directories(${CORE_LIBRARY_NAME} PRIVATE external/VulkanMemoryAllocator/include)

# By specifying SYSTEM, we suppressed the warnings from third-party headers.
target_include_directories(${CORE_LIBRARY_NAME} SYSTEM PRIVATE external/VulkanMemoryAllocator/include)

if (LINUX)
# shaderc requires pthread
Expand Down
2 changes: 1 addition & 1 deletion taichi/backends/vulkan/vulkan_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ void VulkanPipeline::create_descriptor_set_layout(const Params &params) {

for (auto var : variables) {
// We want to remove auxiliary outputs such as frag depth
if (var->built_in == -1) {
if (static_cast<int>(var->built_in) == -1) {
render_target_count++;
}
}
Expand Down