Cleanup: suppress CLANG warnings, remove unused variables
This commit is contained in:
@@ -86,7 +86,11 @@ class LookdevModule {
|
||||
Instance &inst_;
|
||||
|
||||
public:
|
||||
LookdevModule(Instance &inst) : inst_(inst){};
|
||||
LookdevModule(Instance &inst) : inst_(inst)
|
||||
{
|
||||
/* Suppress CLANG `-Wunused-private-field` warning. */
|
||||
(void)inst_;
|
||||
};
|
||||
|
||||
/* TODO(fclem): This is where the lookdev balls display should go. */
|
||||
};
|
||||
|
||||
@@ -386,7 +386,7 @@ static void grease_pencil_geom_batch_ensure(const GreasePencil &grease_pencil, c
|
||||
|
||||
/* First, count how many vertices and triangles are needed for the whole object. Also record the
|
||||
* offsets into the curves for the vertices and triangles. */
|
||||
int total_points_num = 0;
|
||||
// int total_points_num = 0; /* UNUSED. */
|
||||
int total_verts_num = 0;
|
||||
int total_triangles_num = 0;
|
||||
int v_offset = 0;
|
||||
@@ -422,7 +422,7 @@ static void grease_pencil_geom_batch_ensure(const GreasePencil &grease_pencil, c
|
||||
v_offset += 1 + points.size() + (is_cyclic ? 1 : 0) + 1;
|
||||
}
|
||||
|
||||
total_points_num += curves.points_num();
|
||||
// total_points_num += curves.points_num(); /* UNUSED. */
|
||||
|
||||
/* One vertex is stored before and after as padding. Cyclic strokes have one extra vertex. */
|
||||
total_verts_num += curves.points_num() + num_cyclic + curves.curves_num() * 2;
|
||||
|
||||
@@ -44,6 +44,9 @@ VKPipelineStateManager::VKPipelineStateManager()
|
||||
current_.clip_distances = 0;
|
||||
current_.polygon_smooth = false;
|
||||
current_.line_smooth = false;
|
||||
|
||||
/* Suppress CLANG `-Wunused-private-field` warning. */
|
||||
(void)current_mutable_;
|
||||
}
|
||||
|
||||
void VKPipelineStateManager::set_state(const GPUState &state, const GPUStateMutable &mutable_state)
|
||||
|
||||
@@ -94,8 +94,6 @@ PyDoc_STRVAR(
|
||||
"Accessor for :class:`BMLoopUV` UV (as a 2D Vector).\n\ntype: :class:`BMLayerCollection`");
|
||||
PyDoc_STRVAR(bpy_bmlayeraccess_collection__skin_doc,
|
||||
"Accessor for skin layer.\n\ntype: :class:`BMLayerCollection`");
|
||||
PyDoc_STRVAR(bpy_bmlayeraccess_collection__paint_mask_doc,
|
||||
"Accessor for paint mask layer.\n\ntype: :class:`BMLayerCollection`");
|
||||
#ifdef WITH_FREESTYLE
|
||||
PyDoc_STRVAR(bpy_bmlayeraccess_collection__freestyle_edge_doc,
|
||||
"Accessor for Freestyle edge layer.\n\ntype: :class:`BMLayerCollection`");
|
||||
|
||||
Reference in New Issue
Block a user