minimal.c broken in branch libmypaint-v1.5.x
SleepProgger opened this issue · 2 comments
SleepProgger commented
[nope@seima-pc examples]$ gcc -o minimal -I../ -I../json_build/include/json-c/ -L../json_build/lib/ -ljson minimal.c
minimal.c: In function ‘stroke_to’:
minimal.c:9:5: error: too many arguments to function ‘mypaint_brush_stroke_to’
9 | mypaint_brush_stroke_to
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from libmypaint.c:15,
from minimal.c:1:
../mypaint-brush.c:1198:1: note: declared here
1198 | mypaint_brush_stroke_to(
| ^~~~~~~~~~~~~~~~~~~~~~~
minimal.c: In function ‘main’:
minimal.c:48:59: warning: passing argument 2 of ‘mypaint_surface_end_atomic’ from incompatible pointer type [-Wincompatible-pointer-types]
48 | mypaint_surface_end_atomic((MyPaintSurface *)surface, &rois);
| ^~~~~
| |
| MyPaintRectangles * {aka struct <anonymous> *}
In file included from libmypaint.c:20,
from minimal.c:1:
../mypaint-surface.c:123:68: note: expected ‘MyPaintRectangle *’ {aka ‘struct <anonymous> *’} but argument is of type ‘MyPaintRectangles *’ {aka ‘struct <anonymous> *’}
123 | mypaint_surface_end_atomic(MyPaintSurface *self, MyPaintRectangle *roi)
| ~~~~~~~~~~~~~~~~~~^~~
I assume that is related to the backport from 2.0 ?
jplloyd commented
Quite right, good catch! Fixed in 65969f0 (apparently not configured to close issues from non-master branches, which I guess is a very reasonable default).
SleepProgger commented
Seem to work. Thanks.