[Bf-blender-cvs] [95964444c66] master: Cleanup: Clang tidy, unused variable warning

Hans Goudey noreply at git.blender.org
Wed Jun 29 17:58:43 CEST 2022


Commit: 95964444c660249cd3891a9c287ebe0ed165ce07
Author: Hans Goudey
Date:   Wed Jun 29 10:57:28 2022 -0500
Branches: master
https://developer.blender.org/rB95964444c660249cd3891a9c287ebe0ed165ce07

Cleanup: Clang tidy, unused variable warning

===================================================================

M	source/blender/editors/space_spreadsheet/spreadsheet_layout.cc
M	source/blender/gpu/intern/gpu_framebuffer.cc

===================================================================

diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc b/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc
index ad4ca80f36f..780dd0303cd 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc
@@ -342,7 +342,7 @@ class SpreadsheetLayoutDrawer : public SpreadsheetDrawer {
       /* Tooltip showing raw byte values. Encode values in pointer to avoid memory allocation. */
       UI_but_func_tooltip_set(
           but,
-          [](bContext *C, void *argN, const char *UNUSED(tip)) {
+          [](bContext * /*C*/, void *argN, const char *UNUSED(tip)) {
             const uint32_t uint_color = POINTER_AS_UINT(argN);
             ColorGeometry4b color = *(ColorGeometry4b *)&uint_color;
             return BLI_sprintfN(TIP_("Byte Color (sRGB encoded):\n%3d  %3d  %3d  %3d"),
diff --git a/source/blender/gpu/intern/gpu_framebuffer.cc b/source/blender/gpu/intern/gpu_framebuffer.cc
index 019b5af461c..8d93e49d588 100644
--- a/source/blender/gpu/intern/gpu_framebuffer.cc
+++ b/source/blender/gpu/intern/gpu_framebuffer.cc
@@ -148,7 +148,7 @@ void FrameBuffer::load_store_config_array(const GPULoadStore *load_store_actions
   }
 }
 
-unsigned int FrameBuffer::get_bits_per_pixel(void)
+unsigned int FrameBuffer::get_bits_per_pixel()
 {
   unsigned int total_bits = 0;
   for (GPUAttachment &attachment : attachments_) {



More information about the Bf-blender-cvs mailing list