Silence an MSVC warning

This commit is contained in:
Chris Robinson
2019-09-28 23:31:49 -07:00
parent 00250042c8
commit fabb9add9b
+5 -1
View File
@@ -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>;