From d0f05ba9158ddc4549e56a554d76863f22b62725 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sun, 13 Nov 2022 11:29:04 +0100 Subject: [PATCH] Cleanup: fix compiler error/warnings --- source/blender/editors/uvedit/uvedit_clipboard.cc | 8 +++++--- .../blender/editors/uvedit/uvedit_clipboard_graph_iso.hh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/source/blender/editors/uvedit/uvedit_clipboard.cc b/source/blender/editors/uvedit/uvedit_clipboard.cc index 7e6d6a2e0d0..d7222f04ba8 100644 --- a/source/blender/editors/uvedit/uvedit_clipboard.cc +++ b/source/blender/editors/uvedit/uvedit_clipboard.cc @@ -114,7 +114,9 @@ static void add_iso_edge( /* Build an `iso_graph` representation of an island of a `UvElementMap`. */ -GraphISO *build_iso_graph(UvElementMap *element_map, const int island_index, int cd_loop_uv_offset) +static GraphISO *build_iso_graph(UvElementMap *element_map, + const int island_index, + int /*cd_loop_uv_offset*/) { GraphISO *g = new GraphISO(element_map->island_total_unique_uvs[island_index]); for (int i = 0; i < g->n; i++) { @@ -260,7 +262,7 @@ bool UV_ClipboardBuffer::find_isomorphism(UvElementMap *dest_element_map, return false; } -static int uv_copy_exec(bContext *C, wmOperator *op) +static int uv_copy_exec(bContext *C, wmOperator * /*op*/) { UV_clipboard_free(); uv_clipboard = new UV_ClipboardBuffer(); @@ -292,7 +294,7 @@ static int uv_copy_exec(bContext *C, wmOperator *op) return OPERATOR_FINISHED; } -static int uv_paste_exec(bContext *C, wmOperator *op) +static int uv_paste_exec(bContext *C, wmOperator * /*op*/) { /* TODO: Restore `UvClipboard` from system clipboard. */ if (!uv_clipboard) { diff --git a/source/blender/editors/uvedit/uvedit_clipboard_graph_iso.hh b/source/blender/editors/uvedit/uvedit_clipboard_graph_iso.hh index adfe4de2367..80d246f0ce3 100644 --- a/source/blender/editors/uvedit/uvedit_clipboard_graph_iso.hh +++ b/source/blender/editors/uvedit/uvedit_clipboard_graph_iso.hh @@ -12,7 +12,7 @@ #pragma once -#include +#include "BLI_sys_types.h" /* A thin representation of a "Graph" in graph theory. */ class GraphISO {