-
Notifications
You must be signed in to change notification settings - Fork 116
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
[common] fixed some compilation warnings #2071
Conversation
lslusarczyk
commented
Sep 9, 2024
•
edited
Loading
edited
- excessive semicolons
- unused variables
- use python3.6 friendly "universal_newlines" alias instead of "text" param
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? |
@@ -164,7 +164,8 @@ ur_result_t MemBuffer::getHandle(ur_device_handle_t Device, char *&Handle) { | |||
} | |||
|
|||
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
source/loader/ur_lib.cpp
Outdated
@@ -50,8 +50,8 @@ void context_t::parseEnvEnabledLayers() { | |||
} | |||
|
|||
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 |