-
-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Use
volatile
to avoid global SingletonIndex being optimized out
Passing `initializedGlobalSingletonIndex` to a dummy function (`Unused`) may not always avoid being optimized out. Instead, the C++ `volatile` keyword is really meant to be used to avoid such optimization. Added the C++17 `[[maybe_unused]]` attribute to avoid possible warnings. Removed the claim that `Unused` ensures that its parameter is not optimized out.
- Loading branch information
1 parent
b9b9e14
commit a661e0e
Showing
2 changed files
with
3 additions
and
10 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