Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hal_mp.c:991:7: warning: statement will never be executed #4

Open
sdack opened this issue Oct 7, 2017 · 0 comments
Open

hal_mp.c:991:7: warning: statement will never be executed #4

sdack opened this issue Oct 7, 2017 · 0 comments

Comments

@sdack
Copy link

sdack commented Oct 7, 2017

Hello,

compiling the driver with gcc 7.2.1 throws the following warning:

/usr/src/rtl8812au-zebulon2/hal/hal_mp.c:991:7: warning: statement will never be executed [-Wswitch-unreachable]
u32 reg0xC50 = 0;

The code in question is at the start of a switch() { ... } statement:

...
	switch (ulAntennaRx) {
		u32 reg0xC50 = 0;
case ANTENNA_A:
...

You probably want to move it one scope up so that it becomes properly initialized with 0 or else might it contain random data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant