https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9dc6c14eca4ec17c98d962...
commit 9dc6c14eca4ec17c98d962dd7d9e15aa68098965 Author: Timo Kreuzer timo.kreuzer@reactos.org AuthorDate: Sun Apr 28 19:29:45 2019 +0200 Commit: Hervé Poussineau hpoussin@reactos.org CommitDate: Mon May 27 13:22:40 2019 +0200
[TFTPD] Disable format-overflow warnings --- base/services/tftpd/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/base/services/tftpd/CMakeLists.txt b/base/services/tftpd/CMakeLists.txt index 0ae2efab3d..0159e0e1a3 100644 --- a/base/services/tftpd/CMakeLists.txt +++ b/base/services/tftpd/CMakeLists.txt @@ -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)