1
0
mirror of synced 2024-11-28 09:30:51 +01:00

build: Move another warning disable to the build script

This commit is contained in:
WerWolv 2022-08-05 08:42:09 +02:00
parent 5a41be48c3
commit 352df24160
2 changed files with 4 additions and 14 deletions

View File

@ -369,5 +369,5 @@ function(downloadImHexPatternsFiles dest)
endfunction() endfunction()
macro(setupCompilerWarnings target) macro(setupCompilerWarnings target)
target_compile_options(${target} PRIVATE -Wall -Wextra -Werror -Wno-restrict) target_compile_options(${target} PRIVATE -Wall -Wextra -Werror -Wno-restrict -Wno-stringop-overread)
endmacro() endmacro()

View File

@ -2,19 +2,9 @@
#include <hex.hpp> #include <hex.hpp>
// TODO: Workaround for weird issue picked up by GCC 12.1.0 and later. This seems like a compiler bug mentioned in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 #include <map>
#pragma GCC diagnostic push #include <string_view>
#include <vector>
#if (__GNUC__ >= 12)
#pragma GCC diagnostic ignored "-Wrestrict"
#pragma GCC diagnostic ignored "-Wstringop-overread"
#endif
#include <map>
#include <string_view>
#include <vector>
#pragma GCC diagnostic pop
#include <hex/helpers/fs.hpp> #include <hex/helpers/fs.hpp>
#include <hex/helpers/file.hpp> #include <hex/helpers/file.hpp>