diff options
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 0652f858..1b1e12dd 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -912,9 +912,13 @@ constexpr ALCint alcEFXMinorVersion = 0; /* To avoid extraneous allocations, a 0-sized FlexArray<ALCcontext*> is defined - * globally as a sharable object. + * globally as a sharable object. MSVC warns that a zero-sized array will have + * zero objects here, so silence that. */ +DIAGNOSTIC_PUSH +MVSDIAGNOSTIC(warning(disable : 4815)) al::FlexArray<ALCcontext*> EmptyContextArray{0u}; +DIAGNOSTIC_POP using DeviceRef = al::intrusive_ptr<ALCdevice>; |