Cleanup: compiler & clang-tidy warnings

This commit is contained in:
Campbell Barton 2021-07-02 12:12:09 +10:00
parent addb1a5c9a
commit 841b2cea7b
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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);