nuttx-apps/include
Xiang Xiao ca70e585b1 system/nxlooper: Fix the following compiler warning
nxlooper.c: In function 'nxlooper_opendevice':
Error: nxlooper.c:126:15: error: unused variable 'x' [-Werror=unused-variable]
  126 |       uint8_t x;
      |               ^
Error: nxlooper.c:125:15: error: unused variable 'supported' [-Werror=unused-variable]
  125 |       uint8_t supported = true;
      |               ^~~~~~~~~
In file included from nxlooper.c:40:
nxlooper.c: In function 'nxlooper_loopthread':
Error: nxlooper.c:482:15: error: format '%d' expects argument of type 'int', but argument 3 has type 'ssize_t' {aka 'long int'} [-Werror=format=]
  482 |       audinfo("message received size %d id%d\n", size, msg.msg_id);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~
      |                                                  |
      |                                                  ssize_t {aka long int}
nxlooper.c:482:39: note: format string is defined here
  482 |       audinfo("message received size %d id%d\n", size, msg.msg_id);
      |                                      ~^
      |                                       |
      |                                       int
      |                                      %ld
cc1: all warnings being treated as errors
make[3]: *** [/github/workspace/sources/apps/Application.mk:133: nxlooper.c.github.workspace.sources.apps.system.nxlooper.o] Error 1
nxlooper_main.c: In function 'nxlooper_cmd_loopback':
Error: nxlooper_main.c:209:9: error: implicit declaration of function 'nxlooper_loopraw'; did you mean 'nxlooper_stop'? [-Werror=implicit-function-declaration]
  209 |   ret = nxlooper_loopraw(plooper, channels, bpsamp,
      |         ^~~~~~~~~~~~~~~~
      |         nxlooper_stop

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-10 07:45:42 -03:00
..
builtin include: nxstyle fixes 2021-06-11 08:53:57 -05:00
canutils include: fix relative path CI error 2021-06-16 09:03:06 -05:00
fsutils include: nxstyle fixes 2021-06-11 08:53:57 -05:00
gpsutils apps/gpsutils/minmea: Re-released under the NuttX BSD license with permission from the author 2016-02-22 08:00:24 -06:00
graphics include: fix relative path CI error 2021-06-16 09:03:06 -05:00
industry industry: abnt_codi: update licenses to Apache 2021-06-08 08:43:15 -05:00
interpreters Ensure all source code end with one and only one newline 2020-02-09 08:14:49 -06:00
modbus modbus: Fix compilation issue and advice users about termios 2021-04-05 08:39:52 -05:00
netutils system/ping[6]: correct the ping return value 2021-06-22 10:28:21 -03:00
nshlib include: update licenses to Apache 2021-06-11 05:05:27 -05:00
platform include: nxstyle fixes 2021-06-11 08:53:57 -05:00
system system/nxlooper: Fix the following compiler warning 2021-07-10 07:45:42 -03:00
testing include: nxstyle fixes 2021-06-11 08:53:57 -05:00
wireless wireless/wapi: Fix issue of getting the operating frequency 2021-04-12 03:56:11 -05:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00