From 3bdf1c11fb15df96355cc79e885e0d7aa1dc3afb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 Jun 2022 10:16:19 +1000 Subject: Cleanup: warnings --- source/blender/blenkernel/intern/paint.c | 2 +- source/blender/editors/sculpt_paint/paint_cursor.c | 1 + source/blender/gpu/intern/gpu_buffers.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index c9f60356451..81c7e7f34da 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -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) { diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index c097ddc6191..fe48485c7d5 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -38,6 +38,7 @@ #include "IMB_imbuf_types.h" +#include "ED_image.h" #include "ED_view3d.h" #include "DEG_depsgraph.h" diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 8dfc7923380..f7be2434fbf 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -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"); -- cgit v1.2.3