Cleanup: Clang tidy, unused variable warning

This commit is contained in:
Hans Goudey 2022-06-29 10:57:28 -05:00
parent 1516f7dcde
commit 95964444c6
2 changed files with 2 additions and 2 deletions

View File

@ -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"),

View File

@ -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_) {