From 5858f05f9bbbcfeca77cda249d26fe05bca5cc38 Mon Sep 17 00:00:00 2001 From: Jeffrey Ryan Date: Mon, 16 May 2022 19:13:02 -0500 Subject: GCC: Fix -Wstringop-overflow= warnings Resolves #8320 --- external/boost/archive/portable_binary_archive.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/external/boost/archive/portable_binary_archive.hpp b/external/boost/archive/portable_binary_archive.hpp index 7ae01a225..cdbd38aad 100644 --- a/external/boost/archive/portable_binary_archive.hpp +++ b/external/boost/archive/portable_binary_archive.hpp @@ -44,9 +44,12 @@ reverse_bytes(signed char size, char *address){ char * first = address; char * last = first + size - 1; for(;first < last;++first, --last){ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overflow=" char x = *last; *last = *first; *first = x; +#pragma GCC diagnostic pop } } -- cgit v1.2.3