diff options
author | Mattes D <github@xoft.cz> | 2024-03-12 21:46:43 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2024-03-14 08:47:20 +0100 |
commit | 6aec10feab51cf0cb849bbbbe9428f28147e057f (patch) | |
tree | 9888973915d4f1a4af1260a3a40c030c67c6d58d /SetFlags.cmake | |
parent | Fixed UrlClientTest's Github CA. (diff) | |
download | cuberite-6aec10feab51cf0cb849bbbbe9428f28147e057f.tar cuberite-6aec10feab51cf0cb849bbbbe9428f28147e057f.tar.gz cuberite-6aec10feab51cf0cb849bbbbe9428f28147e057f.tar.bz2 cuberite-6aec10feab51cf0cb849bbbbe9428f28147e057f.tar.lz cuberite-6aec10feab51cf0cb849bbbbe9428f28147e057f.tar.xz cuberite-6aec10feab51cf0cb849bbbbe9428f28147e057f.tar.zst cuberite-6aec10feab51cf0cb849bbbbe9428f28147e057f.zip |
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r-- | SetFlags.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake index 1c1071499..9c7749431 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -202,5 +202,11 @@ function(set_exe_flags TARGET) -Wno-reserved-identifier ) endif() + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16) + target_compile_options( + ${TARGET} PRIVATE + -Wno-unsafe-buffer-usage + ) + endif() endif() endfunction() |