Skip to content

Commit

Permalink
-Wmem-access only called when GCC > 7 (#10453)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zughy committed Oct 6, 2020
1 parent aae7d4f commit a37e96e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/mapblock_mesh.cpp
Expand Up @@ -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__)
Expand Down

0 comments on commit a37e96e

Please sign in to comment.