microsoft / microsoft/onnxruntime
[Build] Unreachable code when bulding ONNXRuntime 1.21.0 from source
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the issue
I am building ONNXRuntime on Windows from source and I got the following warning:
`217>D:\...\onnxruntime\core\providers\cpu\ml\tree_ensemble_common.h(922): warning C4702: unreachable code`
### Urgency
_No response_
### Target platform
Windows
### Build script
PROJECT(ONNXRuntime-1.21.0)
set(onnxruntime_RUN_ONNX_TESTS OFF)
set(onnxruntime_GENERATE_TEST_REPORTS ON)
set(onnxruntime_USE_MIMALLOC OFF)
set(onnxruntime_ENABLE_PYTHON OFF)
set(onnxruntime_BUILD_CSHARP OFF)
set(onnxruntime_BUILD_JAVA OFF)
set(onnxruntime_BUILD_NODEJS OFF)
set(onnxruntime_BUILD_OBJC OFF)
set(onnxruntime_BUILD_SHARED_LIB ON CACHE BOOL "" FORCE)
set(onnxruntime_BUILD_APPLE_FRAMEWORK OFF)
set(onnxruntime_USE_DNNL OFF)
set(onnxruntime_USE_NNAPI_BUILTIN OFF)
set(onnxruntime_USE_RKNPU OFF)
set(onnxruntime_USE_LLVM OFF)
set(onnxruntime_ENABLE_MICROSOFT_INTERNAL OFF)
set(onnxruntime_USE_VITISAI OFF)
set(onnxruntime_USE_TENSORRT OFF)
set(onnxruntime_USE_TENSORRT_BUILTIN_PARSER ON)
set(onnxruntime_USE_TVM OFF)
set(onnxruntime_TVM_CUDA_RUNTIME OFF)
set(onnxruntime_TVM_USE_HASH OFF)
set(onnxruntime_USE_MIGRAPHX OFF)
set(onnxruntime_DISABLE_CONTRIB_OPS OFF)
set(onnxruntime_DISABLE_ML_OPS OFF)
set(onnxruntime_DISABLE_RTTI ON)
set(onnxruntime_DISABLE_EXCEPTIONS OFF)
set(onnxruntime_MINIMAL_BUILD ON)
set(onnxruntime_EXTENDED_MINIMAL_BUILD OFF)
set(onnxruntime_MINIMAL_BUILD_CUSTOM_OPS OFF)
set(onnxruntime_REDUCED_OPS_BUILD OFF)
set(onnxruntime_ENABLE_LANGUAGE_INTEROP_OPS OFF)
set(onnxruntime_USE_DML OFF)
set(onnxruntime_USE_WINML OFF)
set(onnxruntime_BUILD_MS_EXPERIMENTAL_OPS OFF)
set(onnxruntime_USE_TELEMETRY OFF)
set(onnxruntime_ENABLE_LTO OFF)
set(onnxruntime_USE_ACL OFF)
set(onnxruntime_USE_ACL_1902 OFF)
set(onnxruntime_USE_ACL_1905 OFF)
set(onnxruntime_USE_ACL_1908 OFF)
set(onnxruntime_USE_ACL_2002 OFF)
set(onnxruntime_USE_ARMNN OFF)
set(onnxruntime_ARMNN_RELU_USE_CPU ON)
set(onnxruntime_ARMNN_BN_USE_CPU ON)
set(onnxruntime_USE_JSEP OFF)
set(onnxruntime_ENABLE_NVTX_PROFILE OFF)
set(onnxruntime_ENABLE_TRAINING OFF)
set(onnxruntime_ENABLE_TRAINING_OPS OFF)
set(onnxruntime_ENABLE_TRAINING_APIS OFF)
set(onnxruntime_ENABLE_CPU_FP16_OPS OFF)
set(onnxruntime_USE_NCCL OFF)
set(onnxruntime_BUILD_BENCHMARKS OFF)
set(onnxruntime_USE_ROCM OFF)
set(Onnxruntime_GCOV_COVERAGE OFF)
set(onnxruntime_USE_MPI OFF)
set(onnxruntime_ENABLE_MEMORY_PROFILE OFF)
set(onnxruntime_ENABLE_CUDA_LINE_NUMBER_INFO OFF)
set(onnxruntime_BUILD_WEBASSEMBLY OFF)
set(onnxruntime_BUILD_WEBASSEMBLY_STATIC_LIB OFF)
set(onnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_CATCHING ON)
set(onnxruntime_ENABLE_WEBASSEMBLY_API_EXCEPTION_CATCHING OFF)
set(onnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_THROWING ON)
set(onnxruntime_WEBASSEMBLY_RUN_TESTS_IN_BROWSER OFF)
set(onnxruntime_ENABLE_WEBASSEMBLY_THREADS OFF)
set(onnxruntime_ENABLE_WEBASSEMBLY_DEBUG_INFO OFF)
set(onnxruntime_ENABLE_WEBASSEMBLY_PROFILING OFF)
set(onnxruntime_ENABLE_LAZY_TENSOR OFF)
set(onnxruntime_ENABLE_EXTERNAL_CUSTOM_OP_SCHEMAS OFF)
set(onnxruntime_ENABLE_CUDA_PROFILING OFF)
set(onnxruntime_ENABLE_ROCM_PROFILING OFF)
set(onnxruntime_USE_XNNPACK OFF)
set(onnxruntime_USE_CANN OFF)
set(CMAKE_TLS_VERIFY ON)
set(FETCHCONTENT_QUIET OFF)
set(ONNX_USE_MSVC_STATIC_RUNTIME OFF)
set(protobuf_MSVC_STATIC_RUNTIME OFF)
set(gtest_force_shared_crt ON)
set(onnxruntime_PYBIND_EXPORT_OPSCHEMA OFF)
set(onnxruntime_BUILD_UNIT_TESTS OFF)
set(onnxruntime_USE_PREINSTALLED_EIGEN ON)
set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests" FORCE)
set(onnxruntime_ENABLE_MEMLEAK_CHECKER OFF)
# Set subdirs: where to find other CMakeLists.txt
SUBDIRS(onnxruntime/cmake)
### Error / output
`217>D:\...\onnxruntime\core\providers\cpu\ml\tree_ensemble_common.h(922): warning C4702: unreachable code`
### Visual Studio Version
Visual studio comunity 2019
### GCC / Compiler Version
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.