-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix compiler warnings #1044
fix compiler warnings #1044
Conversation
@@ -183,7 +183,7 @@ static const struct | |||
|
|||
inline const char *attr(uint32_t attr) | |||
{ | |||
for (int i = 0; i < OTEL_CPP_TRACE_ATTRIBUTES_MAX; i++) | |||
for (long unsigned int i = 0; i < OTEL_CPP_TRACE_ATTRIBUTES_MAX; i++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the type long unsigned int
? Probably unsigned int
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was the type compiler was showing. I changed to size_t
.
Codecov Report
@@ Coverage Diff @@
## main #1044 +/- ##
==========================================
- Coverage 94.85% 94.85% -0.00%
==========================================
Files 151 151
Lines 5972 5971 -1
==========================================
- Hits 5664 5663 -1
Misses 308 308
|
@ThomsonTan I can't reproduce EDIT:
|
Fixes various compiler warnings.
Changes
Please provide a brief description of the changes here.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes