---

** [tickets:#254] “Error: this statement may fall through” when compiling from 
source**

**Status:** new
**Milestone:** 0.9.0
**Created:** Sun Nov 03, 2019 01:48 AM UTC by Miguel PA
**Last Updated:** Sun Nov 03, 2019 01:48 AM UTC
**Owner:** nobody


I'm trying to compile from source newset version 0.10, but when running `make` 
I get

~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -I./src/helper 
-DPKGDATADIR=\"/usr/local/share/openocd\" -DBINDIR=\"/usr/local/bin\" 
-I./jimtcl -I./jimtcl -Wall -Wstrict-prototypes -Wformat-security -Wshadow 
-Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align 
-Wredundant-decls -Werror -g -O2 -MT src/svf/svf.lo -MD -MP -MF 
src/svf/.deps/svf.Tpo -c src/svf/svf.c -o src/svf/svf.o
src/svf/svf.c: In function ‘svf_read_command_from_file’:
src/svf/svf.c:663:7: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
  663 |     i = -1;
      |     ~~^~~~
src/svf/svf.c:664:4: note: here
  664 |    case '\r':
      |    ^~~~
src/svf/svf.c:667:8: error: this statement may fall through 
[-Werror=implicit-fallthrough=]
  667 |     if (!cmd_pos)
      |        ^
src/svf/svf.c:669:4: note: here
  669 |    default:
      |    ^~~~~~~
~~~
I'm using version 0.10.0, but the ticket milestone option did not listed this 
version


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to