[TFTPD] Disable format-overflow warnings
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 28 Apr 2019 17:29:45 +0000 (19:29 +0200)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 27 May 2019 11:22:40 +0000 (13:22 +0200)
base/services/tftpd/CMakeLists.txt

index 0ae2efa..0159e0e 100644 (file)
@@ -1,4 +1,8 @@
 
 
+if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
+    add_compile_flags("-Wno-format-overflow")
+endif()
+
 add_executable(tftpd tftpd.cpp)
 set_module_type(tftpd win32cui)
 add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32)
 add_executable(tftpd tftpd.cpp)
 set_module_type(tftpd win32cui)
 add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32)