mirror of
https://github.com/reactos/reactos.git
synced 2024-11-29 06:23:41 +08:00
[TELNET] disable restrict warnings
Fixes GCC 8 warning: base/applications/network/telnet/src/tnmain.cpp:190:13: error: 'char* strcpy(char*, const char*)' accessing 1 byte at offsets [0, 2147483647] and [0, 2147483647] may overlap 1 byte at offset 0 [-Werror=restrict] strcpy(&buf[cursor],&buf[cursor+1]); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
74be88ac47
commit
85d7a38c41
@ -3,6 +3,10 @@ set_cpp(WITH_EXCEPTIONS WITH_STL)
|
||||
|
||||
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
|
||||
|
||||
if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
|
||||
add_compile_flags("-Wno-restrict")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
src/ansiprsr.cpp
|
||||
src/keytrans.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user