diff options
author | Jacques Lucke <jacques@blender.org> | 2022-11-13 13:29:04 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-11-13 13:29:04 +0300 |
commit | d0f05ba9158ddc4549e56a554d76863f22b62725 (patch) | |
tree | 8ae50078d162641ca0492eafc6ac730aa4db3a3c | |
parent | 721fc9c1c95017d55785ea42e7ba473a0285b9ad (diff) |
Cleanup: fix compiler error/warnings
-rw-r--r-- | source/blender/editors/uvedit/uvedit_clipboard.cc | 8 | ||||
-rw-r--r-- | source/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 <sys/types.h> +#include "BLI_sys_types.h" /* A thin representation of a "Graph" in graph theory. */ class GraphISO { |