From 97746129d5870beedc40e3c035c7982ce8a6bebc Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 3 Oct 2022 17:37:25 -0500 Subject: Cleanup: replace UNUSED macro with commented args in C++ code This is the conventional way of dealing with unused arguments in C++, since it works on all compilers. Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/` --- source/blender/draw/engines/eevee_next/eevee_engine.cc | 2 +- source/blender/draw/engines/eevee_next/eevee_pipeline.cc | 2 +- source/blender/draw/engines/eevee_next/eevee_sync.cc | 4 ++-- source/blender/draw/engines/eevee_next/eevee_velocity.cc | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/draw/engines/eevee_next') diff --git a/source/blender/draw/engines/eevee_next/eevee_engine.cc b/source/blender/draw/engines/eevee_next/eevee_engine.cc index 5ef198838c9..214f6a001f0 100644 --- a/source/blender/draw/engines/eevee_next/eevee_engine.cc +++ b/source/blender/draw/engines/eevee_next/eevee_engine.cc @@ -143,7 +143,7 @@ static void eevee_instance_free(void *instance) static void eevee_render_to_image(void *vedata, struct RenderEngine *engine, struct RenderLayer *layer, - const struct rcti *UNUSED(rect)) + const struct rcti * /*rect*/) { if (!GPU_shader_storage_buffer_objects_support()) { return; diff --git a/source/blender/draw/engines/eevee_next/eevee_pipeline.cc b/source/blender/draw/engines/eevee_next/eevee_pipeline.cc index 21d1948f03c..cc5a4d56231 100644 --- a/source/blender/draw/engines/eevee_next/eevee_pipeline.cc +++ b/source/blender/draw/engines/eevee_next/eevee_pipeline.cc @@ -201,7 +201,7 @@ PassMain::Sub *ForwardPipeline::material_transparent_add(const Object *ob, void ForwardPipeline::render(View &view, Framebuffer &prepass_fb, Framebuffer &combined_fb, - GPUTexture *UNUSED(combined_tx)) + GPUTexture * /*combined_tx*/) { UNUSED_VARS(view); diff --git a/source/blender/draw/engines/eevee_next/eevee_sync.cc b/source/blender/draw/engines/eevee_next/eevee_sync.cc index 09ea7c9ec3d..f2daba48d7a 100644 --- a/source/blender/draw/engines/eevee_next/eevee_sync.cc +++ b/source/blender/draw/engines/eevee_next/eevee_sync.cc @@ -215,8 +215,8 @@ static void gpencil_drawcall_add(gpIterData &iter, iter.vcount = v_first + v_count - iter.vfirst; } -static void gpencil_stroke_sync(bGPDlayer *UNUSED(gpl), - bGPDframe *UNUSED(gpf), +static void gpencil_stroke_sync(bGPDlayer * /*gpl*/, + bGPDframe * /*gpf*/, bGPDstroke *gps, void *thunk) { diff --git a/source/blender/draw/engines/eevee_next/eevee_velocity.cc b/source/blender/draw/engines/eevee_next/eevee_velocity.cc index e7e4984f7de..b9a78e8547e 100644 --- a/source/blender/draw/engines/eevee_next/eevee_velocity.cc +++ b/source/blender/draw/engines/eevee_next/eevee_velocity.cc @@ -51,8 +51,8 @@ void VelocityModule::init() static void step_object_sync_render(void *velocity, Object *ob, - RenderEngine *UNUSED(engine), - Depsgraph *UNUSED(depsgraph)) + RenderEngine * /*engine*/, + Depsgraph * /*depsgraph*/) { ObjectKey object_key(ob); /* NOTE: Dummy resource handle since this will not be used for drawing. */ -- cgit v1.2.3