Hi every one,

Sources need to be fixed for successful compiling at gcc 7.4.0 version.

Source have many errors with  switch fallthrough

src/svf/svf.c:663:7: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
src/jtag/drivers/ftdi.c:854:6: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
src/flash/mflash.c:260:9: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
src/flash/nand/mx3.c:283:20: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
src/target/target.c:3564:14: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
src/target/arm_disassembler.c:3301:14: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
src/target/arm_adi_v5.c:511:15: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
...
src/target/arm_adi_v5.c:350:14: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
./src/helper/log.h:114:2: error: this statement may fall through 
[-Werror=implicit-fallthrough=] (fix need in src/target/armv7a.c: In function 
‘armv7a_mmu_translate_va_pa’:)
src/helper/command.c:1451:11: error: this statement may fall through 
[-Werror=implicit-fallthrough=]


One return statement error
src/target/target.c:3583:1: error: control reaches end of non-void function 
[-Werror=return-type]


Also errors with sptintf buffers sizes (like  a, trying fit in 8 chars array, 
INT data, what may have much more chars)
src/flash/nor/xmc4xxx.c:939:43: error: ‘%d’ directive output may be truncated 
writing between 1 and 10 bytes into a region of size 6 
[-Werror=format-truncation=]

src/target/arm_adi_v5.c:1064:35: error: ‘%02d’ directive output may be 
truncated writing between 2 and 11 bytes into a region of size 5 
[-Werror=format-truncation=]

src/target/nds32_cmd.c:824:21: error: ‘__builtin___sprintf_chk’ writing a 
terminating nul past the end of the destination [-Werror=format-overflow=]



Best regards
Vladimir




_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to