Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:http
jaeger-client-cpp
fix-sign-compare-warning.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-sign-compare-warning.patch of Package jaeger-client-cpp
From b3d1ad1e4d00fd3df8ce8c91e0a5ef8183c1c55b Mon Sep 17 00:00:00 2001 From: Michal Rostecki <mrostecki@suse.com> Date: Mon, 14 May 2018 10:02:33 +0200 Subject: [PATCH] Fix -Werror=sign-compare warning Cast the numWritten variable to unsigned type - we expect it to be positive. Signed-off-by: Michal Rostecki <mrostecki@suse.com> --- src/jaegertracing/utils/UDPClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jaegertracing/utils/UDPClient.h b/src/jaegertracing/utils/UDPClient.h index 56836f5..0326d78 100644 --- a/src/jaegertracing/utils/UDPClient.h +++ b/src/jaegertracing/utils/UDPClient.h @@ -60,7 +60,7 @@ class UDPClient : public agent::thrift::AgentIf { throw std::logic_error(oss.str()); } const auto numWritten = ::write(_socket.handle(), data, size); - if (numWritten != size) { + if ((unsigned)numWritten != size) { std::ostringstream oss; oss << "Failed to write message" ", numWritten="
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor