Author
anonymous
about 4 years ago
Language
C
Compiler
gcc 11.1.0
Options
Warnings
Optimization
Compiler Default
no pedantic
Author
anonymous
about 4 years ago
$ gcc prog.c -Wall -Wextra -O2 -march=native
prog.c: In function 'main':
prog.c:28:22: warning: missing braces around initializer [-Wmissing-braces]
28 | const ST_BLOCK FFF = {
| ^
29 | {
30 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
| {
31 | }, {
| }
prog.c:28:22: warning: missing braces around initializer [-Wmissing-braces]
28 | const ST_BLOCK FFF = {
| ^
29 | {
30 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
| {
31 | }, {
| }
32 | 0x00,0x00,
| {
33 | },
| }
prog.c:28:22: warning: missing braces around initializer [-Wmissing-braces]
28 | const ST_BLOCK FFF = {
| ^
29 | {
30 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
| {
31 | }, {
| }
32 | 0x00,0x00,
| {
33 | },
| }
prog.c:47:15: warning: assignment to 'pfdl_u08 *' {aka 'unsigned char *'} from incompatible pointer type 'UCHAR (*)[8]' {aka 'unsigned char (*)[8]'} [-Wincompatible-pointer-types]
47 | HHH.data_pu08 = &(BlockData.Area2.ucAddress);// ←ここで発生
| ^
prog.c:64:1: warning: initialization discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
64 | &(PP),2,0,0,// ←ここで発生
| ^
prog.c:63:19: warning: missing braces around initializer [-Wmissing-braces]
63 | CCC const DDD[] = {
| ^
64 | &(PP),2,0,0,// ←ここで発生
| {
65 | };
| }
Exit Code:
0