Skip to content

Commit ae1ee50

Browse files
committed
[ET-VK][ez] Fix unused variable
Summary: Title says it all. Also add `-Werror=unused-variable` to compile flags when building Vulkan to guard against this in the future.
1 parent 9560800 commit ae1ee50

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

backends/vulkan/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ set(COMMON_INCLUDES
5252
set(VULKAN_CXX_FLAGS "-fexceptions")
5353
list(APPEND VULKAN_CXX_FLAGS "-DUSE_VULKAN_WRAPPER")
5454
list(APPEND VULKAN_CXX_FLAGS "-DUSE_VULKAN_VOLK")
55+
list(APPEND VULKAN_CXX_FLAGS "-Werror=unused-variable")
5556

5657
# vulkan API files
5758

backends/vulkan/runtime/graph/ops/impl/BinaryOp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ void add_binary_op_buffer_node(
161161
std::string kernel_name("binary_");
162162
kernel_name.reserve(kShaderNameReserve);
163163
std::string op = op_name;
164-
int clamp_type = remove_clamp_from_name(op);
165164
kernel_name += op;
166165
add_storage_type_suffix(kernel_name, graph.storage_type_of(out));
167166

0 commit comments

Comments
 (0)