An error occurred during the initial execution
Closed this issue · 1 comments
jouae commented
After sudo apt install libsdl2-dev libjpeg-dev libpng-dev
and make config
commands were executed, I tired to make the demo and got the messages when building the demo
...
src/image-png.c: In function ‘twin_png_to_pixmap’:
src/image-png.c:48:9: warning: variable ‘rb’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
48 | int rb = 0;
| ^~
src/image-png.c:51:20: warning: variable ‘pix’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
51 | twin_pixmap_t *pix = NULL;
| ^~~
src/image-png.c:53:16: warning: variable ‘rowp’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
53 | png_bytep *rowp = NULL;
| ^~~~
CC .libtwin.a/src/label.c.o
CC .libtwin.a/src/matrix.c.o
CC .libtwin.a/src/path.c.o
src/path.c: In function ‘_twin_path_smove’:
src/path.c:78:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
78 | _twin_path_sfinish(path);
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/path.c:79:5: note: here
79 | case 0:
| ^~~~
CC .libtwin.a/src/pattern.c.o
CC .libtwin.a/src/pixmap.c.o
CC .libtwin.a/src/poly.c.o
CC .libtwin.a/src/primitive.c.o
CC .libtwin.a/src/queue.c.o
CC .libtwin.a/src/screen.c.o
CC .libtwin.a/src/spline.c.o
CC .libtwin.a/src/timeout.c.o
CC .libtwin.a/src/toplevel.c.o
CC .libtwin.a/src/trig.c.o
CC .libtwin.a/src/widget.c.o
CC .libtwin.a/src/window.c.o
src/window.c: In function ‘twin_window_dispatch’:
src/window.c:437:34: warning: this statement may fall through [-Wimplicit-fallthrough=]
437 | window->screen->button_y = -1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
src/window.c:438:5: note: here
438 | case TwinEventMotion:
| ^~~~
...
Here is following demo window:
jserv commented
I tired to make the demo and got the messages when building the demo
... src/image-png.c: In function ‘twin_png_to_pixmap’: src/image-png.c:48:9: warning: variable ‘rb’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered] 48 | int rb = 0; | ^~ src/image-png.c:51:20: warning: variable ‘pix’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered] 51 | twin_pixmap_t *pix = NULL; | ^~~ ...
They are warnings instead of errors. You can add volatile
to eliminate some of them.