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:
Kamil Kopryk
2025-01-21 18:43:10 +00:00
committed by Compute-Runtime-Automation
parent 1e89058232
commit bc4f21dda3

View File

@ -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