1
0
mirror of synced 2024-11-24 15:50:16 +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()
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()

View File

@ -2,19 +2,9 @@
#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
#pragma GCC diagnostic push
#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 <map>
#include <string_view>
#include <vector>
#include <hex/helpers/fs.hpp>
#include <hex/helpers/file.hpp>