diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-02 05:12:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-02 05:15:29 +0300 |
commit | 841b2cea7b89cd6994a43dc6a09c09ee65a98218 (patch) | |
tree | 662d4ed4f42488857aa76e62cf1ada2ea6e718b0 /source/blender/draw/intern/mesh_extractors | |
parent | addb1a5c9a91c3b4428a8d0548815632fa608e36 (diff) |
Cleanup: compiler & clang-tidy warnings
Diffstat (limited to 'source/blender/draw/intern/mesh_extractors')
-rw-r--r-- | source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc | 2 | ||||
-rw-r--r-- | source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc index 22ba80b2769..5c78cc0b731 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_select_idx.cc @@ -29,7 +29,7 @@ namespace blender::draw { /** \name Extract Selection Index * \{ */ -static void extract_select_idx_init_impl(const MeshRenderData *mr, +static void extract_select_idx_init_impl(const MeshRenderData *UNUSED(mr), const int len, void *buf, void *tls_data) diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc index 1bbe8b6f859..2f1cff08796 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_vcol.cc @@ -103,9 +103,9 @@ static void extract_vcol_init(const MeshRenderData *mr, GPU_vertbuf_init_with_format(vbo, &format); GPU_vertbuf_data_alloc(vbo, mr->loop_len); - typedef struct gpuMeshVcol { + using gpuMeshVcol = struct gpuMeshVcol { ushort r, g, b, a; - } gpuMeshVcol; + }; gpuMeshVcol *vcol_data = (gpuMeshVcol *)GPU_vertbuf_get_data(vbo); MLoop *loops = (MLoop *)CustomData_get_layer(cd_ldata, CD_MLOOP); |