suppress "this statement may fall through" warning
The semi-colon is needed, to prevent the comment being parsed as part of the "if {...}" statement. The warning looks like this: seeed-voicecard/wm8960.c: In function ‘wm8960_hw_params’: seeed-voicecard/wm8960.c:752:6: warning: this statement may fall through [-Wimplicit-fallthrough=] 752 | if ((iface & 0x3) != 0) { | ^ seeed-voicecard/wm8960.c:757:2: note: here 757 | default: | ^~~~~~~
This commit is contained in:
parent
4c15036368
commit
476378c156
1 changed files with 2 additions and 1 deletions
3
wm8960.c
3
wm8960.c
|
@ -752,7 +752,8 @@ static int wm8960_hw_params(struct snd_pcm_substream *substream,
|
||||||
if ((iface & 0x3) != 0) {
|
if ((iface & 0x3) != 0) {
|
||||||
iface |= 0x000c;
|
iface |= 0x000c;
|
||||||
break;
|
break;
|
||||||
}
|
};
|
||||||
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
dev_err(codec->dev, "unsupported width %d\n",
|
dev_err(codec->dev, "unsupported width %d\n",
|
||||||
params_width(params));
|
params_width(params));
|
||||||
|
|
Loading…
Reference in a new issue