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

NEST3 triggers warnings when compiled with Clang 9 #1391

Closed
heplesser opened this issue Jan 13, 2020 · 8 comments · Fixed by #1282
Closed

NEST3 triggers warnings when compiled with Clang 9 #1391

heplesser opened this issue Jan 13, 2020 · 8 comments · Fixed by #1282
Assignees
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: High Should be handled next T: Maintenance Work to keep up the quality of the code and documentation. ZC: Kernel DO NOT USE THIS LABEL ZP: Pending DO NOT USE THIS LABEL
Milestone

Comments

@heplesser
Copy link
Contributor

NEST3 triggers a number of warnings when compiled with Clang 9, mainly in recording_device.h, but also

/Users/plesser/NEST/code/src_nest3/nestkernel/node_manager.cpp:383:10: warning: local variable 'nodecollection' will be copied despite being returned by name [-Wreturn-std-move]
  return nodecollection;
         ^~~~~~~~~~~~~~
/Users/plesser/NEST/code/src_nest3/nestkernel/node_manager.cpp:383:10: note: call 'std::move' explicitly to avoid copying
  return nodecollection;
         ^~~~~~~~~~~~~~
         std::move(nodecollection)
@heplesser heplesser added ZC: Kernel DO NOT USE THIS LABEL ZP: Pending DO NOT USE THIS LABEL S: High Should be handled next T: Maintenance Work to keep up the quality of the code and documentation. I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Jan 13, 2020
@heplesser heplesser added this to the NEST 3.0 milestone Jan 13, 2020
@ikitayama
Copy link

ikitayama commented Jan 14, 2020 via email

@heplesser
Copy link
Contributor Author

@ikitayama These warnings were NEST-3 specific.

@ikitayama
Copy link

ikitayama commented Jan 14, 2020 via email

@ikitayama
Copy link

With the trunk Clang as of this writing, I don't see the warning @heplesser reported on Arm.

@ikitayama
Copy link

What about the build time? Quick still on x86?

@ikitayama
Copy link

What about the build time? Quick still on x86?

Sorry I take it back, I was using a Debug Clang that I really should've avoided.

@ikitayama
Copy link

Upstream often likes to fix a bug in trunk, that's why I was suggesting to use the Clang 10 candidate.

@heplesser
Copy link
Contributor Author

@ikitayama I fear I caused some confusion with the way I worded the issue description: The problem was not in Clang, but in the NEST code. Clang pointed out some slight weaknesses in the NEST code which g++ had not warned about. Sorry for the confusion. The weaknesses are now fixed in the nest-3 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: High Should be handled next T: Maintenance Work to keep up the quality of the code and documentation. ZC: Kernel DO NOT USE THIS LABEL ZP: Pending DO NOT USE THIS LABEL
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants