Cleanup: compiler warnings

This commit is contained in:
2021-07-30 14:32:12 +02:00
parent 3848507511
commit c1ec2e9d5f
2 changed files with 2 additions and 2 deletions

View File

@@ -246,7 +246,7 @@ static bool isDisabled(GpencilModifierData *md, int UNUSED(userRenderParams))
{ {
WeightGpencilModifierData *mmd = (WeightGpencilModifierData *)md; WeightGpencilModifierData *mmd = (WeightGpencilModifierData *)md;
return !(mmd->target_vgname && mmd->target_vgname[0] != '\0'); return (mmd->target_vgname[0] == '\0');
} }
static void distance_panel_draw(const bContext *UNUSED(C), Panel *panel) static void distance_panel_draw(const bContext *UNUSED(C), Panel *panel)

View File

@@ -552,7 +552,7 @@ BLI_INLINE int lineart_LineIntersectTest2d(
k1 = (a2[1] - a1[1]) / x_diff; k1 = (a2[1] - a1[1]) / x_diff;
k2 = (b2[1] - b1[1]) / x_diff2; k2 = (b2[1] - b1[1]) / x_diff2;
if ((k1 == k2)) if (k1 == k2)
return 0; return 0;
x = (a1[1] - b1[1] - k1 * a1[0] + k2 * b1[0]) / (k2 - k1); x = (a1[1] - b1[1] - k1 * a1[0] + k2 * b1[0]) / (k2 - k1);