volatile is intended for hardware interaction, where changes might not be obvious from the given code, disabling certain compiler features.
The intended use is atomic operations, so use that instead.
There are other uses of volatile which probably mean to be atomic, but they are mostly in the recording section which I can't really test, don't want to test, and since they don't create warnings should probably be left alone.
volatile
is intended for hardware interaction, where changes might not be obvious from the given code, disabling certain compiler features. The intended use is atomic operations, so use that instead.There are other uses of
volatile
which probably mean to be atomic, but they are mostly in the recording section which I can't really test, don't want to test, and since they don't create warnings should probably be left alone.Resolves warning 5 of #1046