gecko-dev/gfx/vr
Chris Peterson f4ef8ec8c7 Bug 1803504 - Fix C++20 -Wdeprecated-volatile warnings in gfx/vr. r=gfx-reviewers,lsalzman
C++20 deprecated decrement/increment of object of volatile-qualified types, e.g. v++.

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1152r3.html

`warning: gfx/vr/VRShMem.cpp:420:21: '++' expression of 'volatile'-qualified type is deprecated [-Wvolatile]`

C++20 is warning that incrementing the volatile int64_t variables `mExternalShmem->geckoGenerationA` and `geckoGenerationB` is not an atomic operation. Replacing the postfix increment with explicit addition makes the warnings go away without changing the semantics of this code.

Differential Revision: https://phabricator.services.mozilla.com/D163558
2022-12-02 05:14:37 +00:00
..
external_api
ipc Bug 1779792 - Part 4: Deduplicate ProcessChild subclass constructors, r=ipc-reviewers,necko-reviewers,media-playback-reviewers,alwu,mccr8 2022-08-10 14:55:23 +00:00
service Bug 1784812 - Use common JSONWriteFuncs when writing to a string - r=canaltinova,media-playback-reviewers,alwu 2022-08-17 07:07:54 +00:00
FxROutputHandler.cpp
FxROutputHandler.h
FxRWindowManager.cpp
FxRWindowManager.h
VRDisplayClient.cpp
VRDisplayClient.h
VRDisplayPresentation.cpp
VRDisplayPresentation.h
VRManager.cpp
VRManager.h
VRPuppetCommandBuffer.cpp
VRPuppetCommandBuffer.h
VRServiceHost.cpp
VRServiceHost.h
VRShMem.cpp Bug 1803504 - Fix C++20 -Wdeprecated-volatile warnings in gfx/vr. r=gfx-reviewers,lsalzman 2022-12-02 05:14:37 +00:00
VRShMem.h
VRThread.cpp
VRThread.h
components.conf
gfxVR.cpp
gfxVR.h
gfxVRMutex.h
moz.build
nsFxrCommandLineHandler.cpp
nsFxrCommandLineHandler.h