cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O -DLDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -c keybld.c
keybld.c:25:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
25 | main()
| ^~~~
keybld.c: In function ‘main’:
keybld.c:29:15: error: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Werror=implicit-function-declaration]
29 | while(gets(buf)) {
| ^~~~
| fgets
keybld.c:37:27: error: implicit declaration of function ‘add_tok’ [-Werror=implicit-function-declaration]
37 | } else if(add_tok(buf, bp) == -1) {
| ^~~~~~~
keybld.c:42:9: error: implicit declaration of function ‘dump_machine’ [-Werror=implicit-function-declaration]
42 | dump_machine();
| ^~~~~~~~~~~~
keybld.c: At top level:
keybld.c:72:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
72 | add_tok(tok, actions)
| ^~~~~~~
keybld.c: In function ‘add_tok’:
keybld.c:88:12: error: implicit declaration of function ‘follow’ [-Werror=implicit-function-declaration]
88 | if(follow(*tok, tok + 1, stop) == -1)
| ^~~~~~
keybld.c: At top level:
keybld.c:95:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
95 | follow(c, tp, sp)
| ^~~~~~
keybld.c: In function ‘follow’:
keybld.c:118:50: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
118 | arcp->arg = arcup->arg = (void *)n_user_actions;
| ^
keybld.c: At top level:
keybld.c:163:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
163 | dump_machine()
| ^~~~~~~~~~~~
keybld.c: In function ‘dump_machine’:
keybld.c:171:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
171 | printf("/* %d bytes required for transition table storage */\n",
| ~^
| |
| int
| %ld
172 | sizeof(short) * TRANSITIONS * n_states);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int keybld.c:185:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
185 | printf("%d", -(int)tp->arg - 1);
| ^
cc1: some warnings being treated as errors
make[2]: *** [Makefile:78: keybld.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 09:46:53 |
Calls: | 6,706 |
Files: | 12,236 |
Messages: | 5,350,782 |