diff options
author | Hans Goudey <h.goudey@me.com> | 2022-06-29 18:57:28 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-06-29 18:57:28 +0300 |
commit | 95964444c660249cd3891a9c287ebe0ed165ce07 (patch) | |
tree | 7234418c022b1063e92d561fcae583867f1ab7e5 /source | |
parent | 1516f7dcde34a4a31f6f3d04eac5f60310ea32b7 (diff) |
Cleanup: Clang tidy, unused variable warning
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_layout.cc | 2 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer.cc | 2 |
2 files changed, 2 insertions, 2 deletions
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_) { |