build: Move another warning disable to the build script
This commit is contained in:
parent
5a41be48c3
commit
352df24160
@ -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()
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user