You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
/home/teamhd/sick_visionary_cpp_samples/sick_visionary_cpp_shared/src/TcpSocket.cpp: In member function ‘int visionary::TcpSocket::connect(const string&, uint16_t, uint32_t)’:
/home/teamhd/sick_visionary_cpp_samples/sick_visionary_cpp_shared/src/TcpSocket.cpp:72:24: error: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion]
recvAddr.sin_port = htons(PPPP);
^~~~~
/home/teamhd/sick_visionary_cpp_samples/sick_visionary_cpp_shared/src/TcpSocket.cpp:36:65: error: unused parameter ‘port’ [-Werror=unused-parameter]
int TcpSocket::connect(const std::string& ipaddr, std::uint16_t port, std::uint32_t timeoutMs)
^~~~
cc1plus: all warnings being treated as errors
The text was updated successfully, but these errors were encountered:
teamhd@teamhd:~/sick_visionary_cpp_samples$ cmake --build build
[ 3%] Building CXX object sick_visionary_cpp_shared/CMakeFiles/sick_visionary_cpp_shared.dir/src/UdpSocket.cpp.o
/home/teamhd/sick_visionary_cpp_samples/sick_visionary_cpp_shared/src/UdpSocket.cpp: In member function ‘int visionary::UdpSocket::connect(const string&, uint16_t)’:
/home/teamhd/sick_visionary_cpp_samples/sick_visionary_cpp_shared/src/UdpSocket.cpp:88:43: error: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion]
m_pSockAddrIn->sockaddr_in.sin_port = htons(port);
^~~~~
cc1plus: all warnings being treated as errors
sick_visionary_cpp_shared/CMakeFiles/sick_visionary_cpp_shared.dir/build.make:75: recipe for target 'sick_visionary_cpp_shared/CMakeFiles/sick_visionary_cpp_shared.dir/src/UdpSocket.cpp.o' failed
I try to add “recvAddr.sin_port = htons(static_cast(port));” but it had no effect
/home/teamhd/sick_visionary_cpp_samples/sick_visionary_cpp_shared/src/TcpSocket.cpp: In member function ‘int visionary::TcpSocket::connect(const string&, uint16_t, uint32_t)’:
/home/teamhd/sick_visionary_cpp_samples/sick_visionary_cpp_shared/src/TcpSocket.cpp:72:24: error: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion]
recvAddr.sin_port = htons(PPPP);
^~~~~
/home/teamhd/sick_visionary_cpp_samples/sick_visionary_cpp_shared/src/TcpSocket.cpp:36:65: error: unused parameter ‘port’ [-Werror=unused-parameter]
int TcpSocket::connect(const std::string& ipaddr, std::uint16_t port, std::uint32_t timeoutMs)
^~~~
cc1plus: all warnings being treated as errors
The text was updated successfully, but these errors were encountered: