]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
-Wmem-access only called when GCC > 7 (#10453)
authorZughy <63455151+Zughy@users.noreply.github.com>
Tue, 6 Oct 2020 18:51:27 +0000 (20:51 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 18:51:27 +0000 (20:51 +0200)
src/client/mapblock_mesh.cpp

index f9332e39987a6923ebbed24e344b92aac925a394..c7790f1e47b98a0a81c28ecc4dbfaee53c2ee66c 100644 (file)
@@ -394,7 +394,9 @@ 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__)