apache / nuttx-apps

Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS
https://nuttx.apache.org/
Apache License 2.0
268 stars 504 forks source link

modbus_master: fix cmake build warning #2295

Closed JorgeGzm closed 6 months ago

JorgeGzm commented 6 months ago

Summary

fix build warning of PR 11698.

  Cleaning...
  Configuring...
  Disabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
  Enabling CONFIG_ARM_TOOLCHAIN_CLANG
  Building NuttX...
Error: nuttx/porttimer_m.c:117:30: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
  117 | void xMBMasterPortTimersClose()
      |                              ^
      |                               void
Error: nuttx/porttimer_m.c:171:32: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
  171 | void vMBMasterPortTimersDisable()
      |                                ^
      |                                 void
2 errors generated.

Impact

Fix build modbus master warning

Testing


nuttx$  ./tools/configure.sh linum-stm32h753bi:modbus_master
nuttx$  make v=1
xiaoxiang781216 commented 6 months ago

@JorgeGzm please squash the change into one patch