We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8438f2b commit 4153a32Copy full SHA for 4153a32
ulog_cpp/messages.hpp
@@ -434,14 +434,14 @@ class Value {
434
throw AccessException("Unexpected data type size");
435
}
436
// GCC 14.2 raises an error here when building with -fsanitize=address
437
-#ifdef __GNUC__
+#if defined(__GNUC__) && (__GNUC__ >= 14)
438
#pragma GCC diagnostic push
439
#pragma GCC diagnostic ignored "-Warray-bounds"
440
#pragma GCC diagnostic ignored "-Wstringop-overflow"
441
#endif
442
std::copy(backing_start + total_offset, backing_start + total_offset + sizeof(v),
443
reinterpret_cast<uint8_t*>(&v));
444
445
#pragma GCC diagnostic pop
446
447
return v;
0 commit comments