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.
- Loading branch information