gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -O2 -D_GNU_SOURCE -DSTATIC_BUFFER -DLINUX -DSUCRACK_TITLE="\"sucrack 1.2.3 (LINUX)\"" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSTATISTICS -c -o sucrack-stat.o `test -f 'stat.c' || echo './'`stat.c
rewriter.c: In function ‘rewr_get_rules’:
rewriter.c:74:31: error: implicit declaration of function ‘malloc’ [-Werror=implicit-function-declaration]
74 | rule_set = (rule_set_t *) malloc(sizeof(rule_set_t));
| ^~~~~~
rewriter.c:34:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
33 | #include "rules.h"
+++ |+#include <stdlib.h>
34 | #include "stat.h"
rewriter.c:74:31: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
74 | rule_set = (rule_set_t *) malloc(sizeof(rule_set_t));
| ^~~~~~
rewriter.c:74:31: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
stat.c: In function ‘stat_display’:
stat.c:92:24: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
92 | printf("\33[0;%iH\33[1m%s\33[0m\n\n\n", (ws.ws_col / 2) - ((strlen(SUCRACK_TITLE) + 7)/ 2), SUCRACK_TITLE);
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int size_t {aka long unsigned int}
| %li
In file included from sucrack.c:41:
rules.h:59:20: warning: ‘rules_map’ defined but not used [-Wunused-variable]
59 | static rules_map_t rules_map[] = {
| ^~~~~~~~~
worker.c: In function ‘worker_run’:
worker.c:152:9: warning: variable ‘rs’ set but not used [-Wunused-but-set-variable]
152 | int rs;
| ^~
cc1: some warnings being treated as errors
make[3]: *** [Makefile:481: sucrack-rewriter.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 05:24:18 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,335,949 |