Skip to content

Commit ec42c81

Browse files
committed
Fixed windows
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
1 parent b62a6e2 commit ec42c81

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

rmw_zenoh_cpp/src/detail/rmw_context_impl_s.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class rmw_context_impl_s::Data final
9696
throw std::runtime_error("Error setting up zenoh session. ");
9797
}
9898

99-
rmw_ret_t ret;
99+
rmw_ret_t ret = RMW_RET_ERROR;
100100

101101
// Verify if the zenoh router is running if configured.
102102
const std::optional<uint64_t> configured_connection_attempts =

rmw_zenoh_cpp/src/zenohd/main.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@
1717
#include <mutex>
1818
#include <stdexcept>
1919

20+
#include <zenoh.hxx>
21+
#include <zenoh/api/session.hxx>
22+
2023
#ifdef _WIN32
2124
#include <windows.h>
2225
#else
2326
#include <signal.h>
2427
#endif
2528

26-
27-
#include <zenoh.hxx>
28-
#include <zenoh/api/session.hxx>
29-
3029
#include "../detail/zenoh_config.hpp"
3130

3231
#include "rmw/error_handling.h"

0 commit comments

Comments
 (0)