cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -c -o kcc.o kcc.c
kcc.c:148:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
148 | main(c, v)
| ^~~~
kcc.c: In function ‘main’:
kcc.c:181:25: error: implicit declaration of function ‘atoi’ [-Werror=implicit-function-declaration]
181 | if ((size = atoi(*v)) <= 0)
| ^~~~
kcc.c:306:17: error: implicit declaration of function ‘isatty’ [-Werror=implicit-function-declaration]
306 | if (isatty(fileno(stdin)) && feof(stdin))
| ^~~~~~
kcc.c: In function ‘error’:
kcc.c:378:5: error: implicit declaration of function ‘exit’ [-Werror=implicit-function-declaration]
378 | exit(1);
| ^~~~
kcc.c:368:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
367 | #include <stdarg.h>
+++ |+#include <stdlib.h>
368 |
kcc.c:378:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
378 | exit(1);
| ^~~~
kcc.c:378:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
kcc.c: In function ‘filter’:
kcc.c:419:18: error: implicit declaration of function ‘getstr’ [-Werror=implicit-function-declaration]
419 | while (len = getstr(str, sizeof str, fp)) {
| ^~~~~~
kcc.c: In function ‘buffalloc’:
kcc.c:640:36: error: implicit declaration of function ‘malloc’ [-Werror=implicit-function-declaration]
640 | if ((bufp = holdbuf = (char *) malloc(len)) == NULL)
| ^~~~~~
kcc.c:640:36: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
kcc.c:640:36: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
kcc.c:640:36: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
cc1: some warnings being treated as errors
make[1]: *** [<builtin>: kcc.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:12:53 |
Calls: | 6,666 |
Calls today: | 4 |
Files: | 12,212 |
Messages: | 5,335,697 |