Skip to content

Commit 9a2ea43

Browse files
authored
[webgpu] Fix build break in matmul_nbits.cc (#25806)
### Description Fix build break caused by warning C4702: unreachable code. ``` onnxruntime\contrib_ops\webgpu\quantization\matmul_nbits.cc(95,1): error C2220: the following warning is treated as an error [C:\code\o3\build_main\Debug\onnxruntime_providers_webgpu.vcxproj] onnxruntime\contrib_ops\webgpu\quantization\matmul_nbits.cc(95,1): warning C4702: unreachable code [C:\code\o3\b uild_main\Debug\onnxruntime_providers_webgpu.vcxproj] ``` Seems the CI pipeline does not catch this.
1 parent 21404e3 commit 9a2ea43

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

onnxruntime/contrib_ops/webgpu/quantization/matmul_nbits.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ Status MatMulNBitsProgram::GenerateShaderCode(ShaderHelper& shader) const {
9292
WGSL_TEMPLATE_PARAMETER(tile_size, tile_size_),
9393
WGSL_TEMPLATE_PARAMETER(tile_size_k, tile_size_k),
9494
WGSL_TEMPLATE_PARAMETER(tile_size_k_vec, tile_size_k_vec));
95-
return Status::OK();
9695
}
9796

9897
Status MatMulNBits::ComputeInternal(onnxruntime::webgpu::ComputeContext& context) const {

0 commit comments

Comments
 (0)