diff options
| author | Jeffrey Ryan <jeffreyryan@tutanota.com> | 2022-05-16 19:13:02 -0500 |
|---|---|---|
| committer | Jeffrey Ryan <jeffreyryan@tutanota.com> | 2022-05-16 19:13:02 -0500 |
| commit | 5858f05f9bbbcfeca77cda249d26fe05bca5cc38 (patch) | |
| tree | 7bcfeced0a3e8de969408dc3de441de8e256f85b | |
| parent | 6e60919e6d3645b51b62246d308e2283bd832128 (diff) | |
| download | monzero-core-5858f05f9bbbcfeca77cda249d26fe05bca5cc38.tar.gz monzero-core-5858f05f9bbbcfeca77cda249d26fe05bca5cc38.tar.xz monzero-core-5858f05f9bbbcfeca77cda249d26fe05bca5cc38.zip | |
GCC: Fix -Wstringop-overflow= warnings
Resolves #8320
| -rw-r--r-- | external/boost/archive/portable_binary_archive.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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
}
}
|
