Cleanup: compiler warnings (unused functions & variable)

This commit is contained in:
Campbell Barton
2023-07-15 15:45:03 +10:00
parent 5a86705d4c
commit f957a6da22
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -98,12 +98,12 @@ template<> struct TraitsType<ColorPaint4b> {
};
template<typename T> using Traits = typename TraitsType<T>::type;
static float get_luminance(ColorPaint4f c)
static inline float get_luminance(ColorPaint4f c)
{
return IMB_colormanagement_get_luminance(&c.r);
}
static int get_luminance(ColorPaint4b c)
static inline int get_luminance(ColorPaint4b c)
{
return IMB_colormanagement_get_luminance_byte(&c.r);
}
@@ -163,7 +163,7 @@ void SyncModule::sync_mesh(Object *ob,
void SyncModule::sync_point_cloud(Object *ob,
ObjectHandle &ob_handle,
ResourceHandle res_handle,
const ObjectRef &ob_ref)
const ObjectRef & /*ob_ref*/)
{
int material_slot = 1;