Cleanup: compiler warnings

This commit is contained in:
Campbell Barton
2023-12-12 12:53:03 +11:00
parent 249c8b0e6b
commit d93a594708

View File

@@ -53,12 +53,12 @@ bool operator==(const BokehKernelKey &a, const BokehKernelKey &b)
/* The exterior angle is the angle between each two consecutive vertices of the regular polygon
* from its center. */
float compute_exterior_angle(int sides)
static float compute_exterior_angle(int sides)
{
return (M_PI * 2.0f) / sides;
}
float compute_rotation(float angle, int sides)
static float compute_rotation(float angle, int sides)
{
/* Offset the rotation such that the second vertex of the regular polygon lies on the positive
* y axis, which is 90 degrees minus the angle that it makes with the positive x axis assuming