Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Windows] Build errors: warning C4702: unreachable code #220

Closed
@seanyen

Description

@seanyen

Anyone hit this issue too?

-- The C compiler identification is MSVC 19.26.28806.0
-- The CXX compiler identification is MSVC 19.26.28806.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found boost::coroutine2.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE  
-- Could NOT find ZMQ (missing: ZMQ_LIBRARIES) 
CMake Warning at CMakeLists.txt:61 (message):
  ZeroMQ NOT found.  Skipping the build of [PublisherZMQ] and [bt_recorder].


-- Found PythonInterp: C:/opt/ros/foxy/x64/python.exe (found suitable version "3.8.3", minimum required is "3") 
-- Using PYTHON_EXECUTABLE: C:/opt/ros/foxy/x64/python.exe
-- ------------------------------------------
-- BehaviourTree is being built using AMENT.
-- ------------------------------------------
-- BEHAVIOR_TREE_LIB_DESTINATION:   lib 
-- BEHAVIOR_TREE_BIN_DESTINATION:   bin 
-- CMAKE_RUNTIME_OUTPUT_DIRECTORY:   
-- CMAKE_LIBRARY_OUTPUT_DIRECTORY:   
-- CMAKE_ARCHIVE_OUTPUT_DIRECTORY:   
-- Configuring done
-- Generating done
-- Build files have been written to: C:/workspace/nav2_rel_ws/build/behaviortree_cpp_v3
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/workspace/nav2_rel_ws/src/BehaviorTree.CPP/CMakeLists.txt
  action_node.cpp
  basic_types.cpp
  behavior_tree.cpp
  blackboard.cpp
  bt_factory.cpp
  decorator_node.cpp
  condition_node.cpp
  control_node.cpp
  shared_library.cpp
  tree_node.cpp
  xml_parsing.cpp
  inverter_node.cpp
  repeat_node.cpp
  retry_node.cpp
  subtree_node.cpp
  timeout_node.cpp
  if_then_else_node.cpp
  fallback_node.cpp
  parallel_node.cpp
  reactive_sequence.cpp
  reactive_fallback.cpp
  sequence_node.cpp
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
  sequence_star_node.cpp
  switch_node.cpp
  while_do_else_node.cpp
  bt_cout_logger.cpp
  bt_file_logger.cpp
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
  bt_minitrace_logger.cpp
  tinyxml2.cpp
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
  minitrace.cpp
  shared_library_WIN.cpp
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): error C2220: the following warning is treated as an error [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]
C:\workspace\nav2_rel_ws\src\BehaviorTree.CPP\include\behaviortree_cpp_v3\utils\expected.hpp(1273): warning C4702: unreachable code [C:\workspace\nav2_rel_ws\build\behaviortree_cpp_v3\behaviortree_cpp_v3.vcxproj]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions