diff options
author | Chris Robinson <[email protected]> | 2019-09-28 23:31:49 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-28 23:31:49 -0700 |
commit | fabb9add9b28b323ea6a882a3c7084e7638b7d09 (patch) | |
tree | 1709af8dd2dcedeb8b2f337f1fd9de055ea6f713 /alc | |
parent | 00250042c819b5900e1ff3bd03285cffebd93464 (diff) |
Silence an MSVC warning
Diffstat (limited to 'alc')
-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>; |