Skip to content

[BUILD] Build warning in http_operation_curl.cc on Windows #3253

@marcalff

Description

@marcalff

When building on Windows, in file http_operation_curl.cc, the following line causes warnings:

  static std::uniform_real_distribution<float> dis(0.8, 1.2);
**redacted**\opentelemetry-cpp-1.19.0\ext\src\http\client\curl\http_operation_curl.cc(468,57):
 warning C4305: 'argument': truncation from 'double' to '_Ty'
[**redacted**\opentelemetry-cpp-1.19.0\ext\src\http\client\curl\opentelemetry_http_client_curl.vcxproj]

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions