Skip to content
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

Name clash in RouDi process removeProcess() #271

Closed
marthtz opened this issue Sep 7, 2020 · 2 comments · Fixed by #272
Closed

Name clash in RouDi process removeProcess() #271

marthtz opened this issue Sep 7, 2020 · 2 comments · Fixed by #272
Assignees
Labels
bug Something isn't working

Comments

@marthtz
Copy link
Contributor

marthtz commented Sep 7, 2020

Required information

Operating system:
General issue

Compiler version:
General issue

Observed result or behaviour:
PR #258 cleaned-up some local variable name prefixes. However, that introduced a name clash inside a function rendering a check useless.

Expected result or behaviour:
Do a proper check.

Conditions where it occurred / Performed steps:
In file /iceoryx_posh/source/roudi/roudi_process.cpp inside bool ProcessManager::removeProcess(...) fix

...
auto name = it->getName();
if (name == name)
...
@marthtz marthtz changed the title Name clash Name clash in RouDi process removeProcess() Sep 7, 2020
marthtz added a commit to marthtz/iceoryx that referenced this issue Sep 7, 2020
Signed-off-by: Hintz Martin (CC-AD/ESW1) <martin.hintz@de.bosch.com>
@elBoberido
Copy link
Member

Good catch. I hoped -Wtautological-compare could help here, but it seems it doesn't catch it

@elBoberido elBoberido added the bug Something isn't working label Sep 7, 2020
@marthtz
Copy link
Contributor Author

marthtz commented Sep 7, 2020

Good catch. I hoped -Wtautological-compare could help here, but it seems it doesn't catch it
Yeah, unfortunately it doesn't. Checked it.

@dkroenke dkroenke linked a pull request Sep 7, 2020 that will close this issue
dkroenke added a commit to marthtz/iceoryx that referenced this issue Sep 7, 2020
Signed-off-by: Kroenke Dietrich (CC-AD/ESW1) <Dietrich.Kroenke2@de.bosch.com>
dkroenke added a commit that referenced this issue Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants