/bin/bash ../libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" -DPACKAGE_STRING=\"ace\ 1.4\" -DPACKAGE_BUGREPORT=\"\" -
./make-imglib.c: In function ‘scan_image_directory’: ./make-imglib.c:61:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
61 | while (de = readdir(dir)) {
| ^~
./make-imglib.c: In function ‘tokenize’:
./make-imglib.c:207:20: error: implicit declaration of function ‘isgraph’ [-Werror=implicit-function-declaration]
207 | while (*next && !isgraph(*next)) next++;
| ^~~~~~~
./make-imglib.c:10:1: note: include ‘<ctype.h>’ or provide a declaration of ‘isgraph’
9 | #include <png.h>
+++ |+#include <ctype.h>
10 |
./make-imglib.c: In function ‘main’:
./make-imglib.c:240:15: warning: unused variable ‘down’ [-Wunused-variable]
240 | int across, down;
| ^~~~
./make-imglib.c:240:7: warning: unused variable ‘across’ [-Wunused-variable]
240 | int across, down;
| ^~~~~~
./make-imglib.c:236:13: warning: unused variable ‘o’ [-Wunused-variable]
236 | int x, y, o;
| ^
./make-imglib.c:236:10: warning: unused variable ‘y’ [-Wunused-variable]
236 | int x, y, o;
| ^
./make-imglib.c:236:7: warning: unused variable ‘x’ [-Wunused-variable]
236 | int x, y, o;
| ^
libtool: compile: x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -
libtool: compile: x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
libtool: compile: x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
libtool: compile: x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
libtool: compile: x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
/bin/bash ../libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" -DPACKAGE_STRING=\"ace\ 1.4\" -DPACKAGE_BUGREPORT=\"\" -
libtool: compile: x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
imagelib.c: In function ‘alloc_synth_image’:Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--as-needed -DPACKAGE_NAME=\"ace\" -DPACKAGE_TARNAME=\"ace\" -DPACKAGE_VERSION=\"1.4\" "-DPACKAGE_STRING=\"ace 1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ace\"
imagelib.c:109:17: error: implicit declaration of function ‘malloc’ [-Werror=implicit-function-declaration]
109 | rv = (image *)malloc (sizeof(image));
| ^~~~~~
imagelib.c:5:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
4 | #include "table.h"
+++ |+#include <stdlib.h>
5 |
imagelib.c:109:17: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
109 | rv = (image *)malloc (sizeof(image));
| ^~~~~~
imagelib.c:109:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
imagelib.c: In function ‘register_imagelib’:
imagelib.c:28:1: warning: control reaches end of non-void function [-Wreturn-type]
28 | }
| ^
libtool: compile: x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_FILE_OFFSET_BITS=64 -
help.c: In function ‘my_help_click’:
help.c:337:43: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
337 | if (!w || ! (words[0].flags & HEADER) && x+mx > w->x+w->width+2*thin_space[MENU_FONT])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help.c: In function ‘help’:
help.c:409:23: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
409 | || *cp == '>' && !isspace(cp[1])
| ^
help.c:410:25: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
410 | || isspace(*cp) && !isspace(cp[1]))
| ^
In file included from help.c:29:
cards.h: At top level:
cards.h:41:13: warning: ‘init’ declared ‘static’ but never defined [-Wunused-function]
41 | static void init();
| ^~~~
cards.h:42:13: warning: ‘redraw’ declared ‘static’ but never defined [-Wunused-function]
42 | static void redraw();
| ^~~~~~
cards.h:43:13: warning: ‘resize’ declared ‘static’ but never defined [-Wunused-function]
43 | static void resize(int width, int height);
| ^~~~~~
cards.h:44:13: warning: ‘key’ declared ‘static’ but never defined [-Wunused-function]
44 | static void key(int k, int x, int y);
| ^~~
cards.h:45:13: warning: ‘click’ declared ‘static’ but never defined [-Wunused-function]
45 | static void click(int x, int y, int b);
| ^~~~~
cards.h:46:13: warning: ‘double_click’ declared ‘static’ but never defined [-Wunused-function]
46 | static void double_click(int x, int y, int b);
| ^~~~~~~~~~~~
cards.h:47:13: warning: ‘drag’ declared ‘static’ but never defined [-Wunused-function]
47 | static void drag(int x, int y, int b);
| ^~~~
cards.h:48:13: warning: ‘drop’ declared ‘static’ but never defined [-Wunused-function]
48 | static void drop(int x, int y, int b);
| ^~~~
help.c: In function ‘help’:
help.c:401:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
401 | fread(file, 1, st.st_size, f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stack.c: In function ‘stack_show_change’:
stack.c:118:10: warning: unused variable ‘h’ [-Wunused-variable]
118 | int w, h, num_cards;
| ^
table.c: In function ‘table_loop’:
stack.c: In function ‘stack_set_card_size’:
stack.c:223:13: warning: unused variable ‘t’ [-Wunused-variable]
223 | int s, v, t;
| ^
table.c:340:5: warning: enumeration value ‘ev_none’ not handled in switch [-Wswitch]
340 | switch (event.type)
| ^~~~~~
table.c: In function ‘clip_more’:
table.c:511:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
511 | save[0] = (int)clip_saves;
| ^
table.c: In function ‘unclip’:
table.c:544:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
544 | clip_saves = (int *)clip_saves[0];
| ^
table.c: In function ‘snap_one’:
table.c:714:7: warning: unused variable ‘offset’ [-Wunused-variable]
714 | int offset, dx;
| ^~~~~~
stack.c: In function ‘stack_continue_drag’:
stack.c:700:28: warning: unused variable ‘new_h’ [-Wunused-variable]
700 | int new_x, new_y, new_w, new_h;
| ^~~~~
stack.c:700:21: warning: unused variable ‘new_w’ [-Wunused-variable]
700 | int new_x, new_y, new_w, new_h;
| ^~~~~
stack.c:700:14: warning: unused variable ‘new_y’ [-Wunused-variable]
700 | int new_x, new_y, new_w, new_h;
| ^~~~~
stack.c:700:7: warning: unused variable ‘new_x’ [-Wunused-variable]
700 | int new_x, new_y, new_w, new_h;
| ^~~~~
In file included from stack.c:42:
cards.h: At top level:
cards.h:41:13: warning: ‘init’ declared ‘static’ but never defined [-Wunused-function]
41 | static void init();
| ^~~~
cards.h:42:13: warning: ‘redraw’ declared ‘static’ but never defined [-Wunused-function]
42 | static void redraw();
| ^~~~~~
cards.h:43:13: warning: ‘resize’ declared ‘static’ but never defined [-Wunused-function]
43 | static void resize(int width, int height);
| ^~~~~~
cards.h:44:13: warning: ‘key’ declared ‘static’ but never defined [-Wunused-function]
44 | static void key(int k, int x, int y);
| ^~~
cards.h:45:13: warning: ‘click’ declared ‘static’ but never defined [-Wunused-function]
45 | static void click(int x, int y, int b);
| ^~~~~
cards.h:46:13: warning: ‘double_click’ declared ‘static’ but never defined [-Wunused-function]
46 | static void double_click(int x, int y, int b);
| ^~~~~~~~~~~~
cards.h:47:13: warning: ‘drag’ declared ‘static’ but never defined [-Wunused-function]
47 | static void drag(int x, int y, int b);
| ^~~~
cards.h:48:13: warning: ‘drop’ declared ‘static’ but never defined [-Wunused-function]
48 | static void drop(int x, int y, int b);
| ^~~~
table.c: In function ‘card_synth2’:
table.c:767:27: warning: unused variable ‘w’ [-Wunused-variable]
767 | int subw, subh, face_w, w;
| ^
table.c: In function ‘empty_synth’:
table.c:923:15: warning: unused variable ‘img’ [-Wunused-variable]
923 | image *rv, *img;
| ^~~
xwin.c: In function ‘xwin_init’:
xwin.c:133:10: warning: unused variable ‘color’ [-Wunused-variable]
133 | XColor color;
| ^~~~~
xwin.c: In function ‘xwin_fixed_size’:
table.c: In function ‘back_synth’:
xwin.c:324:19: warning: pointer targets in passing argument 7 of ‘XChangeProperty’ differ in signedness [-Wpointer-sign]
324 | (char *)&mwm_hints, PROP_MWM_HINTS_ELEMENTS);
| ^~~~~~~~~~~~~~~~~~
| |
| char *
In file included from /usr/include/X11/Xlib.h:47,
from xwin.c:26:
/usr/include/X11/Xlib.h:2089:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
2089 | _Xconst unsigned char* /* data */,
| ^
table.c:989:15: warning: unused variable ‘img’ [-Wunused-variable]
989 | image *rv, *img;
| ^~~
In file included from table.c:34:
cards.h: At top level:
cards.h:41:13: warning: ‘init’ declared ‘static’ but never defined [-Wunused-function]
41 | static void init();
| ^~~~
cards.h:42:13: warning: ‘redraw’ declared ‘static’ but never defined [-Wunused-function]
42 | static void redraw();
| ^~~~~~
cards.h:43:13: warning: ‘resize’ declared ‘static’ but never defined [-Wunused-function]
43 | static void resize(int width, int height);
| ^~~~~~
cards.h:44:13: warning: ‘key’ declared ‘static’ but never defined [-Wunused-function]
44 | static void key(int k, int x, int y);
| ^~~
cards.h:45:13: warning: ‘click’ declared ‘static’ but never defined [-Wunused-function]
45 | static void click(int x, int y, int b);
| ^~~~~
cards.h:46:13: warning: ‘double_click’ declared ‘static’ but never defined [-Wunused-function]
46 | static void double_click(int x, int y, int b);
| ^~~~~~~~~~~~
cards.h:47:13: warning: ‘drag’ declared ‘static’ but never defined [-Wunused-function]
47 | static void drag(int x, int y, int b);
| ^~~~
cards.h:48:13: warning: ‘drop’ declared ‘static’ but never defined [-Wunused-function]
48 | static void drop(int x, int y, int b);
| ^~~~
xwin.c: In function ‘cvt_cpt’:
xwin.c:735:15: warning: unused variable ‘bs’ [-Wunused-variable]
735 | int rs, gs, bs, i, x, y;
| ^~
xwin.c:735:11: warning: unused variable ‘gs’ [-Wunused-variable]
735 | int rs, gs, bs, i, x, y;
| ^~
xwin.c:735:7: warning: unused variable ‘rs’ [-Wunused-variable]
735 | int rs, gs, bs, i, x, y;
| ^~
xwin.c: In function ‘cvt_gt’:
xwin.c:780:15: warning: unused variable ‘bs’ [-Wunused-variable]
780 | int rs, gs, bs, i, x, y;
| ^~
xwin.c:780:11: warning: unused variable ‘gs’ [-Wunused-variable]
780 | int rs, gs, bs, i, x, y;
| ^~
xwin.c:780:7: warning: unused variable ‘rs’ [-Wunused-variable]
780 | int rs, gs, bs, i, x, y;
| ^~
xwin.c: In function ‘build_image’:
xwin.c:849:14: warning: pointer targets in assignment from ‘const unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign]
849 | file_bytes = src->file_data;
| ^
xwin.c:903:16: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign]
903 | ximage->data = (unsigned char *)malloc(ximage->bytes_per_line * (xrotate ? width : height));
| ^
xwin.c:916:19: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign]
916 | xmask->data = (unsigned char *)malloc(xmask->bytes_per_line * (xrotate ? width : height));
| ^
xwin.c:961:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
961 | if (xmask) XDestroyImage (xmask); xmask = 0;
| ^~
cc1: some warnings being treated as errors
xwin.c:961:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
961 | if (xmask) XDestroyImage (xmask); xmask = 0;
| ^~~~~
xwin.c:816:28: warning: unused variable ‘num_trans’ [-Wunused-variable]
816 | int i, number_of_passes, num_trans;
| ^~~~~~~~~
xwin.c: In function ‘put_image’:
xwin.c:972:19: warning: variable ‘dh’ set but not used [-Wunused-but-set-variable]
972 | int sw, sh, dw, dh;
| ^~
xwin.c:972:15: warning: variable ‘dw’ set but not used [-Wunused-but-set-variable]
972 | int sw, sh, dw, dh;
| ^~
make[3]: *** [Makefile:481: imagelib.lo] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 04:45:45 |
Calls: | 6,706 |
Files: | 12,236 |
Messages: | 5,350,362 |