Commit fb12cfd1 authored by Victor Zverovich's avatar Victor Zverovich

Suppress more bogus warnings

parent ecd2b80e
......@@ -212,7 +212,8 @@ TEST(WriterTest, Allocator) {
typedef AllocatorRef<MockAllocator> TestAllocator;
MockAllocator alloc;
fmt::BasicMemoryWriter<char, TestAllocator> w((TestAllocator(&alloc)));
std::size_t size = 1.5 * fmt::internal::INLINE_BUFFER_SIZE;
std::size_t size =
static_cast<std::size_t>(1.5 * fmt::internal::INLINE_BUFFER_SIZE);
std::vector<char> mem(size);
EXPECT_CALL(alloc, allocate(size)).WillOnce(testing::Return(&mem[0]));
for (int i = 0; i < fmt::internal::INLINE_BUFFER_SIZE + 1; ++i)
......
......@@ -25,6 +25,9 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// Disable bogus MSVC warnings.
#define _CRT_SECURE_NO_WARNINGS
#include "posix-test.h"
#include <errno.h>
......@@ -32,7 +35,6 @@
#include <climits>
#ifdef _WIN32
# define _CRT_SECURE_NO_WARNINGS
# include <io.h>
# undef max
# undef ERROR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment