-
Notifications
You must be signed in to change notification settings - Fork 124
[common] fixed some compilation warnings #2071
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
[common] fixed some compilation warnings #2071
Conversation
fcaa71c to
3115127
Compare
|
You need to format your code changes. |
3115127 to
b82b241
Compare
e88e2b4 to
947951c
Compare
947951c to
fcdcc75
Compare
|
👍 |
|
@pbalcer , can you take a look again and if all is OK, then merge this? |
| } | ||
|
|
||
| ur_result_t MemBuffer::free() { | ||
| for (const auto &[_, Ptr] : Allocations) { |
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.
why?
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.
AFAIR compiling on jf cluster with g++7 being newest compiler avail there reports warning about "_" as unused variable. These were the only fixes needed to make UR compilable there.
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.
We should not worry about warnings in an old compiler. Just don't set -Werror.
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.
ok, reverted
| } | ||
|
|
||
| void context_t::initLayers() { | ||
| for (auto &[layer, _] : layers) { |
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.
ditto
Remove excessive semicolons. Use python3.6 friendly alias instead of text param.
fcdcc75 to
97a22aa
Compare
|
@pbalcer , if all is OK please merge |
Uh oh!
There was an error while loading. Please reload this page.