Fix GCC fall-through warnings.
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Fri, 31 Jul 2020 09:00:50 +0000 (11:00 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 24 Aug 2020 17:23:14 +0000 (19:23 +0200)
commit6dd18122a81e6030dd239391df6ffde8cb8c59c7
treea0a17387c07a0bef15ccb2abbe62e5739b9cbaaf
parent7c5aa3b8c0fe0862886c7202cc1e2e44434ea4de
Fix GCC fall-through warnings.

When compiling ftdi.c in the context of blackmagic debug, more enabled
warnings and -Werror made me to add appended fixes.

Fixing the signedness of baudrate would probably be more logically by
making all baudrate and clk unsigned, but would need more code changes.
I decided to make clk signed as a fix with minimal
impact. The FTDI chips are far away from 2 GHz clock rate...
src/ftdi.c