summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenny Komow <lenny@lunarg.com>2018-10-22 16:34:26 -0600
committerLenny Komow <lenny@lunarg.com>2018-10-22 16:34:26 -0600
commitcbd85c51a676a61d00488584f940d1bcb1e122d7 (patch)
tree06446a22f5e44e9bfddba75e41eea15637e819d7
parenta49f82ad12d71aed814a81135987d96cb2579c1d (diff)
downloadVulkan-Loader-cbd85c51a676a61d00488584f940d1bcb1e122d7.tar.gz
Vulkan-Loader-cbd85c51a676a61d00488584f940d1bcb1e122d7.tar.bz2
Vulkan-Loader-cbd85c51a676a61d00488584f940d1bcb1e122d7.zip
repo: Disable gcc 8 stringop warnings
GCC 8 introduced some new "stringop" wanrings. The loader deliberately does things that trigger these warnings. As such, they should be disabled Change-Id: I08f640fae2930a06cbdd48095f11febfc9e866ed
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 167d0c8a..65044099 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,7 +121,7 @@ endif()
include_directories(${VulkanHeaders_INCLUDE_DIRS})
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
- set(COMMON_COMPILE_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers")
+ set(COMMON_COMPILE_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-stringop-truncation -Wno-stringop-overflow")
set(COMMON_COMPILE_FLAGS "${COMMON_COMPILE_FLAGS} -fno-strict-aliasing -fno-builtin-memcmp")
# For GCC version 7.1 or greater, we need to disable the implicit fallthrough warning since there's no consistent way to satisfy