Draft
Conversation
| log.printf(" without periodic boundary conditions\n"); | ||
| } | ||
|
|
||
| unsigned mode = getModeAndSetupValues( this ); |
Check notice
Code scanning / CodeQL
Unused local variable Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the problem, simply remove the unused variable declaration on line 100. The function call to getModeAndSetupValues(this) should be left as a statement by itself, since its side effects may be required, but there is no need to store its return value. Only the code at line 100 (unsigned mode = getModeAndSetupValues( this );) needs to be changed, converting it to the following statement: getModeAndSetupValues(this);. No other changes to the file or imports are necessary.
Suggested changeset
1
src/colvar/Plane.h
| @@ -97,7 +97,7 @@ | ||
| log.printf(" without periodic boundary conditions\n"); | ||
| } | ||
|
|
||
| unsigned mode = getModeAndSetupValues( this ); | ||
| getModeAndSetupValues( this ); | ||
| requestAtoms(atoms); | ||
| checkRead(); | ||
| } |
Copilot is powered by AI and may make mistakes. Always verify output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A temporary PR to have a easier access to the diff for this branch
Target release
I would like my code to appear in release XXXXX
Type of contribution
Copyright
COPYRIGHTfile with the correct license information. Code should be released under an open source license. I also used the commandcd src && ./header.sh mymodulenamein order to make sure the headers of the module are correct.Tests