mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 14:18:36 +00:00
common/gl: remove unused variable
clang static analyzer warned that 'len' was computed but never used in glc_vertex2d. glc_stroke_line_dash has side effects so we have to call it, but we don't need to save its return value since it's not used.
This commit is contained in:
parent
6ee99d330f
commit
a33cb671c7
5
glc.c
5
glc.c
@ -1147,10 +1147,9 @@ static double glc_stroke_line_dash(double x1, double y1, double x2, double y2,
|
||||
|
||||
static void glc_vertex2d(InternaCtx *ctx, double x, double y)
|
||||
{
|
||||
double len;
|
||||
if (ctx->path_stroke.state == GLC_STROKE_ACTIVE) {
|
||||
len = glc_stroke_line_dash(ctx->path_stroke.x, ctx->path_stroke.y, x, y,
|
||||
ctx->line_width, &ctx->line_dash);
|
||||
glc_stroke_line_dash(ctx->path_stroke.x, ctx->path_stroke.y, x, y,
|
||||
ctx->line_width, &ctx->line_dash);
|
||||
ctx->path_stroke.x = x;
|
||||
ctx->path_stroke.y = y;
|
||||
} else if (ctx->path_stroke.state == GLC_STROKE_FIRST) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user