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

xpp: Braces required around empty body in if statements #65

Open
InterLinked1 opened this issue Sep 23, 2024 · 0 comments · May be fixed by #66
Open

xpp: Braces required around empty body in if statements #65

InterLinked1 opened this issue Sep 23, 2024 · 0 comments · May be fixed by #66

Comments

@InterLinked1
Copy link
Contributor

Compilation failure due to empty body without braces:

  CC [M]  /usr/src/dahdi-linux-3.4.0/drivers/dahdi/dahdi_dynamic_ethmf.o
/usr/src/dahdi-linux-3.4.0/drivers/dahdi/xpp/card_fxs.c: In function 'set_vmwi':
/usr/src/dahdi-linux-3.4.0/drivers/dahdi/xpp/card_fxs.c:1173:17: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
 1173 |                 ;               /* VMWI_NEON */
      |                 ^
/usr/src/dahdi-linux-3.4.0/drivers/dahdi/xpp/card_fxs.c:1175:17: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
 1175 |                 ;               /* Disable VMWI */
      |                 ^
  CC [M]  /usr/src/dahdi-linux-3.4.0/drivers/dahdi/xpp/card_fxo.o
InterLinked1 added a commit to InterLinked1/dahdi-linux that referenced this issue Sep 23, 2024
Avoid compilation failure on modern kernels by adding braces
around empty if body.

Resolves: asterisk#65
@InterLinked1 InterLinked1 linked a pull request Sep 23, 2024 that will close this issue
osmocom-gerrit pushed a commit to osmocom/dahdi-linux that referenced this issue Oct 3, 2024
Avoid compilation failure on modern kernels by adding braces
around empty if body.

Resolves: asterisk#65
Change-Id: Icc5cc97105aa9894bfe891acc2a84737a4f3241f
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

Successfully merging a pull request may close this issue.

1 participant