Skip to content

Commit c365c36

Browse files
committed
disable C4710
1 parent 21c362a commit c365c36

File tree

4 files changed

+5
-20
lines changed

4 files changed

+5
-20
lines changed

cmake/Warnings.cmake

+5-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ set(MSVC_WARNINGS
6464
"/W4"
6565
"/Wall"
6666
"/WL"
67-
"/wd5045"
68-
"/wd4820"
69-
"/wd4514")
67+
"/wd5045" #FIXME
68+
"/wd4820" #FIXME
69+
"/wd4514" #FIXME
70+
"/wd4710" #FIXME
71+
)
7072

7173
target_compile_options(
7274
${PROJECT_NAME}Warnings

cpp-terminal/buffer.hpp

-8
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,7 @@
1111

1212
#include <cstddef>
1313
#include <cstdint>
14-
15-
#ifdef _WIN32
16-
#pragma warning( push )
17-
#pragma warning( disable : 4710)
18-
#endif
1914
#include <streambuf>
20-
#ifdef _WIN32
21-
#pragma warning( pop )
22-
#endif
2315

2416
namespace Term
2517
{

cpp-terminal/iostream_initializer.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,7 @@
1616
#include "cpp-terminal/tty.hpp"
1717

1818
#include <cstddef>
19-
20-
#ifdef _WIN32
21-
#pragma warning( push )
22-
#pragma warning( disable : 4710)
23-
#endif
2419
#include <iostream>
25-
#ifdef _WIN32
26-
#pragma warning( pop )
27-
#endif
2820

2921
std::size_t Term::IOStreamInitializer::m_counter{0};
3022

cpp-terminal/private/terminal_impl.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <io.h>
1919
#pragma warning(push)
2020
#pragma warning(disable : 4668)
21-
#pragma warning(disable : 4710)
2221
#include <windows.h>
2322
#pragma warning(pop)
2423
#if !defined(ENABLE_VIRTUAL_TERMINAL_PROCESSING)

0 commit comments

Comments
 (0)