Index: source/lib/adts/ring_buf.h =================================================================== --- source/lib/adts/ring_buf.h +++ source/lib/adts/ring_buf.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2011 Wildfire Games. +/* Copyright (C) 2018 Wildfire Games. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -27,6 +27,8 @@ #ifndef INCLUDED_ADTS_RING_BUF #define INCLUDED_ADTS_RING_BUF +# pragma warning(disable:4351) // new behavior: elements of array 'array' will be default initialize + template class RingBuf { size_t size_; // # of entries in buffer @@ -209,4 +211,6 @@ } }; +# pragma warning(default:4351) + #endif // #ifndef INCLUDED_ADTS_RING_BUF Index: source/lib/file/io/io.h =================================================================== --- source/lib/file/io/io.h +++ source/lib/file/io/io.h @@ -28,6 +28,8 @@ #ifndef INCLUDED_IO #define INCLUDED_IO +# pragma warning(disable:4351) // new behavior: elements of array 'array' will be default initialize + #include "lib/config2.h" #include "lib/alignment.h" #include "lib/bits.h" @@ -358,4 +360,6 @@ } // namespace io +# pragma warning(default:4351) + #endif // #ifndef INCLUDED_IO