[Bf-blender-cvs] [d0f05ba9158] master: Cleanup: fix compiler error/warnings
Jacques Lucke
noreply at git.blender.org
Sun Nov 13 11:29:15 CET 2022
Commit: d0f05ba9158ddc4549e56a554d76863f22b62725
Author: Jacques Lucke
Date: Sun Nov 13 11:29:04 2022 +0100
Branches: master
https://developer.blender.org/rBd0f05ba9158ddc4549e56a554d76863f22b62725
Cleanup: fix compiler error/warnings
===================================================================
M source/blender/editors/uvedit/uvedit_clipboard.cc
M source/blender/editors/uvedit/uvedit_clipboard_graph_iso.hh
===================================================================
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 {
More information about the Bf-blender-cvs
mailing list