Cleanup: quiet set-but-unused warnings
This commit is contained in:
@@ -784,6 +784,7 @@ void BLI_ewa_filter(const int width,
|
||||
BLI_ewa_imp2radangle(A, B, C, F, &a, &b, &th, &ecc);
|
||||
if ((b2 = b * b) < rmin) {
|
||||
if ((a2 = a * a) < rmin) {
|
||||
UNUSED_VARS(a2, b2);
|
||||
B = 0.0f;
|
||||
A = C = rmin;
|
||||
F = A * C;
|
||||
|
||||
@@ -106,6 +106,7 @@ static bool copy_data_path_button_poll(bContext *C)
|
||||
|
||||
if (ptr.owner_id && ptr.data && prop) {
|
||||
if (const std::optional<std::string> path = RNA_path_from_ID_to_property(&ptr, prop)) {
|
||||
UNUSED_VARS(path);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -194,6 +195,7 @@ static bool copy_as_driver_button_poll(bContext *C)
|
||||
(index >= 0 || !RNA_property_array_check(prop)))
|
||||
{
|
||||
if (const std::optional<std::string> path = RNA_path_from_ID_to_property(&ptr, prop)) {
|
||||
UNUSED_VARS(path);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -797,6 +797,7 @@ void uiTemplateMovieclipInformation(uiLayout *layout,
|
||||
else {
|
||||
ofs += BLI_strncpy_rlen(str + ofs, RPT_(", failed to load"), sizeof(str) - ofs);
|
||||
}
|
||||
UNUSED_VARS(ofs);
|
||||
|
||||
uiItemL(col, str, ICON_NONE);
|
||||
|
||||
|
||||
@@ -99,6 +99,7 @@ static void geom_add_vertex(const char *p, const char *end, GlobalVertices &r_gl
|
||||
blocks.last().colors.append(linear);
|
||||
}
|
||||
}
|
||||
UNUSED_VARS(p);
|
||||
}
|
||||
|
||||
static void geom_add_mrgb_colors(const char *p, const char *end, GlobalVertices &r_global_vertices)
|
||||
|
||||
Reference in New Issue
Block a user