1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Workaround for GCC bug

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2024-02-29 18:13:37 +01:00
parent 4d3d2e7261
commit 02a124bfab

View file

@ -26,7 +26,11 @@ Test(buffer, decode) {
const char *e = "{\"id\": \"5a786626-fbc6-4c04-98c2-48027e68c2fa\"}";
size_t len = strlen(e);
#pragma GCC diagnostic push
// Workaround for compiler bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106199
#pragma GCC diagnostic ignored "-Wstringop-overflow"
buf.insert(buf.begin(), e, e + len);
#pragma GCC diagnostic pop
k = json_loads(e, 0, nullptr);
cr_assert_not_null(k);