diff options
author | Lenny Komow <lenny@lunarg.com> | 2018-10-22 16:34:26 -0600 |
---|---|---|
committer | Lenny Komow <lenny@lunarg.com> | 2018-10-22 16:34:26 -0600 |
commit | cbd85c51a676a61d00488584f940d1bcb1e122d7 (patch) | |
tree | 06446a22f5e44e9bfddba75e41eea15637e819d7 | |
parent | a49f82ad12d71aed814a81135987d96cb2579c1d (diff) | |
download | Vulkan-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.txt | 2 |
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 |