mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
cosmetic: Fix "implicit fall-through" gcc 7.3.0 warnings
This commit is contained in:
parent
4520f001d8
commit
e92b11bfb7
@ -49,9 +49,11 @@ double atofs(char *s)
|
|||||||
case 'g':
|
case 'g':
|
||||||
case 'G':
|
case 'G':
|
||||||
suff *= 1e3;
|
suff *= 1e3;
|
||||||
|
/* fall-through */
|
||||||
case 'm':
|
case 'm':
|
||||||
case 'M':
|
case 'M':
|
||||||
suff *= 1e3;
|
suff *= 1e3;
|
||||||
|
/* fall-through */
|
||||||
case 'k':
|
case 'k':
|
||||||
case 'K':
|
case 'K':
|
||||||
suff *= 1e3;
|
suff *= 1e3;
|
||||||
@ -76,9 +78,11 @@ double atoft(char *s)
|
|||||||
case 'h':
|
case 'h':
|
||||||
case 'H':
|
case 'H':
|
||||||
suff *= 60;
|
suff *= 60;
|
||||||
|
/* fall-through */
|
||||||
case 'm':
|
case 'm':
|
||||||
case 'M':
|
case 'M':
|
||||||
suff *= 60;
|
suff *= 60;
|
||||||
|
/* fall-through */
|
||||||
case 's':
|
case 's':
|
||||||
case 'S':
|
case 'S':
|
||||||
suff *= atof(s);
|
suff *= atof(s);
|
||||||
|
@ -1594,6 +1594,7 @@ found:
|
|||||||
switch (dev->tuner_type) {
|
switch (dev->tuner_type) {
|
||||||
case RTLSDR_TUNER_R828D:
|
case RTLSDR_TUNER_R828D:
|
||||||
dev->tun_xtal = R828D_XTAL_FREQ;
|
dev->tun_xtal = R828D_XTAL_FREQ;
|
||||||
|
/* fall-through */
|
||||||
case RTLSDR_TUNER_R820T:
|
case RTLSDR_TUNER_R820T:
|
||||||
/* disable Zero-IF mode */
|
/* disable Zero-IF mode */
|
||||||
rtlsdr_demod_write_reg(dev, 1, 0xb1, 0x1a, 1);
|
rtlsdr_demod_write_reg(dev, 1, 0xb1, 0x1a, 1);
|
||||||
|
@ -303,6 +303,7 @@ int main(int argc, char **argv)
|
|||||||
case 'w':
|
case 'w':
|
||||||
flash_file = 1;
|
flash_file = 1;
|
||||||
change = 1;
|
change = 1;
|
||||||
|
/* fall-through */
|
||||||
case 'r':
|
case 'r':
|
||||||
filename = optarg;
|
filename = optarg;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user