[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:
Timo Kreuzer 2019-04-28 16:22:34 +02:00 committed by Hervé Poussineau
parent 74be88ac47
commit 85d7a38c41

View File

@ -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