gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -occd2iso.o ccd2iso.c
In file included from ccd2iso.c:31:
clonecd.h:32:1: warning: ‘packed’ attribute ignored [-Wattributes]
32 | } ccd_sectheader_header __attribute__((packed));
| ^
clonecd.h:39:1: warning: ‘packed’ attribute ignored [-Wattributes]
39 | } ccd_sectheader __attribute__((packed));
| ^
clonecd.h:57:1: warning: ‘packed’ attribute ignored [-Wattributes]
57 | } ccd_sector __attribute__((packed));
| ^
ccd2iso.c: In function ‘main’:
ccd2iso.c:61:22: error: implicit declaration of function ‘strcmp’ [-Werror=implicit-function-declaration]
61 | if ((strcmp(argv[1], "-?") == 0) || (strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0))
| ^~~~~~
ccd2iso.c:32:1: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
31 | #include "clonecd.h"
+++ |+#include <string.h>
32 |
ccd2iso.c:96:105: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
96 | printf("The sector does not contain complete data. Sector size must be %d, while actual data read is %d\n",
| ~^
| |
| int
| %ld
97 | sizeof(ccd_sector), bytes_read);
| ~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
cc1: some warnings being treated as errors
make[3]: *** [Makefile:350: ccd2iso.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 04:18:53 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,335,875 |