mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
test: ignore stringop oveflow in code fragment due to gcc bug c++20
Link to the GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111073 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
1e89058232
commit
bc4f21dda3
@ -26,6 +26,12 @@
|
||||
#include <vector>
|
||||
bool verbose = true;
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
// ignoring stringop-oveflow due to false positive warning on GCC13 after enabling C++20
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
zes_firmware_handle_t firmwareHandle;
|
||||
std::mutex firmwareProgressMutex;
|
||||
@ -1933,3 +1939,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user