gcc -o canvasdraw.o -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 canvasdraw.c
canvasdraw.c: In function ‘main’:
canvasdraw.c:3239:17: error: implicit declaration of function ‘strcasestr’; did you mean ‘strparstr’? [-Werror=implicit-function-declaration]
3239 | if( strcasestr(temp,"NOCONTROLS") ){
| ^~~~~~~~~~
| strparstr
canvasdraw.c: In function ‘getMML’:
canvasdraw.c:6341:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6341 | fgets(buffer, MAX_BUFFER, stream);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
canvasdraw.c: In function ‘getSVGMOL’:
canvasdraw.c:6383:5: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6383 | read(link[0],buffer, 1+sizeof(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
canvasdraw.c:6383:5: warning: ‘read’ writing 65538 bytes into a region of size 65537 overflows the destination [-Wstringop-overflow=]
6383 | read(link[0],buffer, 1+sizeof(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
canvasdraw.c:6367:8: note: destination object ‘buffer’ of size 65537
6367 | char buffer[MAX_BUFFER+1];
| ^~~~~~
In file included from /usr/include/unistd.h:1214,
from ../../Lib/../includes.h:27,
from ../../Lib/libwims.h:21,
from canvasdraw.h:2,
from canvasdraw.c:12: /usr/include/x86_64-linux-gnu/bits/unistd.h:36:1: note: in a call to function ‘read’ declared with attribute ‘access (write_only, 2, 3)’
36 | read (int __fd, void *__buf, size_t __nbytes)
| ^~~~
In file included from /usr/include/features.h:490,
from /usr/include/assert.h:35,
from canvasdraw.h:1:
In function ‘read’,
inlined from ‘getSVGMOL’ at canvasdraw.c:6383:5: /usr/include/x86_64-linux-gnu/bits/unistd.h:38:10: warning: call to ‘__read_chk_warn’ declared with attribute warning: read called with bigger length than size of the destination buffer [-Wattribute-warning]
38 | return __glibc_fortify (read, __nbytes, sizeof (char),
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[5]: *** [Makefile:22: canvasdraw.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:01:15 |
Calls: | 6,666 |
Calls today: | 4 |
Files: | 12,212 |
Messages: | 5,335,695 |