Skip to content

Commit a37e96e

Browse files
authoredOct 6, 2020
-Wmem-access only called when GCC > 7 (#10453)
1 parent aae7d4f commit a37e96e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

Diff for: ‎src/client/mapblock_mesh.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ static void getNodeVertexDirs(const v3s16 &dir, v3s16 *vertex_dirs)
394394

395395
#if defined(__GNUC__) && !defined(__clang__)
396396
#pragma GCC diagnostic push
397+
#if __GNUC__ > 7
397398
#pragma GCC diagnostic ignored "-Wclass-memaccess"
399+
#endif
398400
#endif
399401
memcpy(vertex_dirs, &vertex_dirs_table[idx], 4 * sizeof(v3s16));
400402
#if defined(__GNUC__) && !defined(__clang__)

0 commit comments

Comments
 (0)
Please sign in to comment.