diff options
author | Zughy <63455151+Zughy@users.noreply.github.com> | 2020-10-06 20:51:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 20:51:27 +0200 |
commit | a37e96eefc646f01f34d0c6d8948d4a9c4062cae (patch) | |
tree | 563359a94e0fadc1b4ff2ba1c62fa8cb43782123 /src | |
parent | aae7d4ff8e4e2433b13225269de28e7dc10efe2c (diff) | |
download | minetest-a37e96eefc646f01f34d0c6d8948d4a9c4062cae.tar.gz minetest-a37e96eefc646f01f34d0c6d8948d4a9c4062cae.tar.bz2 minetest-a37e96eefc646f01f34d0c6d8948d4a9c4062cae.zip |
-Wmem-access only called when GCC > 7 (#10453)
Diffstat (limited to 'src')
-rw-r--r-- | src/client/mapblock_mesh.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp index f9332e399..c7790f1e4 100644 --- a/src/client/mapblock_mesh.cpp +++ b/src/client/mapblock_mesh.cpp @@ -394,8 +394,10 @@ static void getNodeVertexDirs(const v3s16 &dir, v3s16 *vertex_dirs) #if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic push +#if __GNUC__ > 7 #pragma GCC diagnostic ignored "-Wclass-memaccess" #endif +#endif memcpy(vertex_dirs, &vertex_dirs_table[idx], 4 * sizeof(v3s16)); #if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic pop |