Cleanup: warnings

This commit is contained in:
Campbell Barton 2022-06-09 10:16:19 +10:00
parent 84906d47dc
commit 3bdf1c11fb
3 changed files with 3 additions and 2 deletions

View File

@ -2284,7 +2284,7 @@ void BKE_sculpt_bvh_update_from_ccg(PBVH *pbvh, SubdivCCG *subdiv_ccg)
subdiv_ccg->grid_hidden);
}
bool BKE_sculptsession_use_pbvh_draw(const Object *ob, const View3D *v3d)
bool BKE_sculptsession_use_pbvh_draw(const Object *ob, const View3D *UNUSED(v3d))
{
SculptSession *ss = ob->sculpt;
if (ss == NULL || ss->pbvh == NULL || ss->mode_type != OB_MODE_SCULPT) {

View File

@ -38,6 +38,7 @@
#include "IMB_imbuf_types.h"
#include "ED_image.h"
#include "ED_view3d.h"
#include "DEG_depsgraph.h"

View File

@ -109,7 +109,7 @@ typedef struct PBVHGPUFormat {
bool active_attrs_only;
} PBVHGPUFormat;
PBVHGPUFormat *GPU_pbvh_make_format()
PBVHGPUFormat *GPU_pbvh_make_format(void)
{
PBVHGPUFormat *vbo_id = MEM_callocN(sizeof(PBVHGPUFormat), "PBVHGPUFormat");