Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CCTK_ATTRIBUTE_UNUSED to mark declared variables as unused
In automatically-generated code, it is often convenient to declare variables unconditionally, and let the compiler strip the unused definitions out. Eventually it would be good to tidy up Kranc so that it only declares variables which are actually needed, but for the moment it is more important to reduce the number of warnings generated during compilation, to encourage users to read the warnings that might actually indicate a problem.
- Loading branch information
Showing
4 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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