[openocd:tickets] #309 openocd src/svf/svf.c:663:7: error: this statement may fall through [-Werror=implicit-fallthrough=]

2021-07-07 Thread Antonio Borneo
- **status**: new --> closed
- **assigned_to**: Antonio Borneo
- **Resolution**:  --> none
- **Comment**:

Thanks for your reply.
I'm closing this ticket



---

** [tickets:#309] openocd  src/svf/svf.c:663:7: error: this statement may fall 
through [-Werror=implicit-fallthrough=]**

**Status:** closed
**Milestone:** 0.10.0
**Created:** Sat Jun 19, 2021 06:34 PM UTC by Bruno Pimenta de Oliveira
**Last Updated:** Wed Jul 07, 2021 12:50 AM UTC
**Owner:** Antonio Borneo
**Attachments:**

- [Sem 
título1.png](https://sourceforge.net/p/openocd/tickets/309/attachment/Sem%20t%C3%ADtulo1.png)
 (159.2 kB; image/png)


I'm trying to reprogram my hoverboard which has the AT32f403 and using st link 
with openocd and ubuntu. I started to do the steps presented in the video: 
https://www.youtube.com/watch?v=l0KIMjl1BoU=252s

After the make install in the openocd I got so many errors below, anyone knows 
what to do to?

rc/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=]
 i = -1;
 ~~^~~~
src/svf/svf.c:664:4: note: here
case '\r':
^~~~
src/svf/svf.c:667:8: error: this statement may fall through
[-Werror=implicit-fallthrough=]
 if (!cmd_pos)
^
src/svf/svf.c:669:4: note: here
default:
^~~

Regards,

Bruno Oliveira


---

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:tickets] #309 openocd src/svf/svf.c:663:7: error: this statement may fall through [-Werror=implicit-fallthrough=]

2021-07-06 Thread Bruno Pimenta de Oliveira
yes worked!


---

** [tickets:#309] openocd  src/svf/svf.c:663:7: error: this statement may fall 
through [-Werror=implicit-fallthrough=]**

**Status:** new
**Milestone:** 0.10.0
**Created:** Sat Jun 19, 2021 06:34 PM UTC by Bruno Pimenta de Oliveira
**Last Updated:** Sat Jun 19, 2021 09:52 PM UTC
**Owner:** nobody
**Attachments:**

- [Sem 
título1.png](https://sourceforge.net/p/openocd/tickets/309/attachment/Sem%20t%C3%ADtulo1.png)
 (159.2 kB; image/png)


I'm trying to reprogram my hoverboard which has the AT32f403 and using st link 
with openocd and ubuntu. I started to do the steps presented in the video: 
https://www.youtube.com/watch?v=l0KIMjl1BoU=252s

After the make install in the openocd I got so many errors below, anyone knows 
what to do to?

rc/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=]
 i = -1;
 ~~^~~~
src/svf/svf.c:664:4: note: here
case '\r':
^~~~
src/svf/svf.c:667:8: error: this statement may fall through
[-Werror=implicit-fallthrough=]
 if (!cmd_pos)
^
src/svf/svf.c:669:4: note: here
default:
^~~

Regards,

Bruno Oliveira


---

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:tickets] #309 openocd src/svf/svf.c:663:7: error: this statement may fall through [-Werror=implicit-fallthrough=]

2021-06-19 Thread Antonio Borneo
The errors and the line numbers show that you are using OpenOCD v0.10.0, that 
is 4 years old.
Please switch to OpenOCD v0.11.0.
If you have any reason to stay on that old version, then please notice that 
modern compilers will trigger many more warnings, so you need to add the flag 
"--disable-werror" when run configure.


---

** [tickets:#309] openocd  src/svf/svf.c:663:7: error: this statement may fall 
through [-Werror=implicit-fallthrough=]**

**Status:** new
**Milestone:** 0.10.0
**Created:** Sat Jun 19, 2021 06:34 PM UTC by Bruno Pimenta de Oliveira
**Last Updated:** Sat Jun 19, 2021 06:34 PM UTC
**Owner:** nobody
**Attachments:**

- [Sem 
título1.png](https://sourceforge.net/p/openocd/tickets/309/attachment/Sem%20t%C3%ADtulo1.png)
 (159.2 kB; image/png)


I'm trying to reprogram my hoverboard which has the AT32f403 and using st link 
with openocd and ubuntu. I started to do the steps presented in the video: 
https://www.youtube.com/watch?v=l0KIMjl1BoU=252s

After the make install in the openocd I got so many errors below, anyone knows 
what to do to?

rc/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=]
 i = -1;
 ~~^~~~
src/svf/svf.c:664:4: note: here
case '\r':
^~~~
src/svf/svf.c:667:8: error: this statement may fall through
[-Werror=implicit-fallthrough=]
 if (!cmd_pos)
^
src/svf/svf.c:669:4: note: here
default:
^~~

Regards,

Bruno Oliveira


---

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.

Re: [openocd:tickets] #309 openocd src/svf/svf.c:663:7: error: this statement may fall through [-Werror=implicit-fallthrough=]

2021-06-19 Thread Tommy Murphy
It might help if you describe the full set of steps that you carry out in an 
attempt to build OpenOCD. And on what OS variant and version.

From: Bruno Pimenta de Oliveira 
Sent: Saturday, June 19, 2021 7:34:40 PM
To: openocd-devel@lists.sourceforge.net 
Subject: [openocd:tickets] #309 openocd src/svf/svf.c:663:7: error: this 
statement may fall through [-Werror=implicit-fallthrough=]



[tickets:#309]<https://sourceforge.net/p/openocd/tickets/309/> openocd 
src/svf/svf.c:663:7: error: this statement may fall through 
[-Werror=implicit-fallthrough=]

Status: new
Milestone: 0.10.0
Created: Sat Jun 19, 2021 06:34 PM UTC by Bruno Pimenta de Oliveira
Last Updated: Sat Jun 19, 2021 06:34 PM UTC
Owner: nobody
Attachments:

  *   Sem 
título1.png<https://sourceforge.net/p/openocd/tickets/309/attachment/Sem%20t%C3%ADtulo1.png>
 (159.2 kB; image/png)

I'm trying to reprogram my hoverboard which has the AT32f403 and using st link 
with openocd and ubuntu. I started to do the steps presented in the video: 
https://www.youtube.com/watch?v=l0KIMjl1BoU=252s

After the make install in the openocd I got so many errors below, anyone knows 
what to do to?

rc/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=]
i = -1;
~~^~~~
src/svf/svf.c:664:4: note: here
case '\r':
^~~~
src/svf/svf.c:667:8: error: this statement may fall through
[-Werror=implicit-fallthrough=]
if (!cmd_pos)
^
src/svf/svf.c:669:4: note: here
default:
^~~

Regards,

Bruno Oliveira




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:tickets] #309 openocd src/svf/svf.c:663:7: error: this statement may fall through [-Werror=implicit-fallthrough=]

2021-06-19 Thread Bruno Pimenta de Oliveira



---

** [tickets:#309] openocd  src/svf/svf.c:663:7: error: this statement may fall 
through [-Werror=implicit-fallthrough=]**

**Status:** new
**Milestone:** 0.10.0
**Created:** Sat Jun 19, 2021 06:34 PM UTC by Bruno Pimenta de Oliveira
**Last Updated:** Sat Jun 19, 2021 06:34 PM UTC
**Owner:** nobody
**Attachments:**

- [Sem 
título1.png](https://sourceforge.net/p/openocd/tickets/309/attachment/Sem%20t%C3%ADtulo1.png)
 (159.2 kB; image/png)


I'm trying to reprogram my hoverboard which has the AT32f403 and using st link 
with openocd and ubuntu. I started to do the steps presented in the video: 
https://www.youtube.com/watch?v=l0KIMjl1BoU=252s

After the make install in the openocd I got so many errors below, anyone knows 
what to do to?

rc/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=]
 i = -1;
 ~~^~~~
src/svf/svf.c:664:4: note: here
case '\r':
^~~~
src/svf/svf.c:667:8: error: this statement may fall through
[-Werror=implicit-fallthrough=]
 if (!cmd_pos)
^
src/svf/svf.c:669:4: note: here
default:
^~~

Regards,

Bruno Oliveira


---

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.