nuttx-apps/system
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
..
adb system: fix relative path CI error 2021-06-16 09:03:06 -05:00
argtable3 argtable3: Workaroud a clang warning 2021-06-17 07:21:52 +02:00
cdcacm system: nxstyle fixes 2021-06-11 02:42:05 -05:00
cfgdata system: nxstyle fixes 2021-06-11 02:42:05 -05:00
cle system: update licenses to Apache 2021-06-11 02:42:05 -05:00
composite system: fix relative path CI error 2021-06-16 09:03:06 -05:00
critmon system/critmon: add thread run time support 2021-07-03 01:51:29 -05:00
cu system: fix relative path CI error 2021-06-16 09:03:06 -05:00
dhcpc system: nxstyle fixes 2021-06-11 02:42:05 -05:00
embedlog system/embedlog: update to v0.6.0 2021-05-16 11:30:29 -03:00
flash_eraseall system: nxstyle fixes 2021-06-11 02:42:05 -05:00
hex2bin system: update licenses to Apache 2021-06-11 02:42:05 -05:00
hexed Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
i2c system: nxstyle fixes 2021-06-11 02:42:05 -05:00
libuv system: fix relative path CI error 2021-06-16 09:03:06 -05:00
lm75 system: update licenses to Apache 2021-06-11 02:42:05 -05:00
lzf Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
mdio system: nxstyle fixes 2021-06-11 02:42:05 -05:00
netdb system: nxstyle fixes 2021-06-11 02:42:05 -05:00
nsh system: fix relative path CI error 2021-06-16 09:03:06 -05:00
ntpc system: fix relative path CI error 2021-06-16 09:03:06 -05:00
nxlooper system/nxlooper: Fix the following compiler warning 2021-07-10 07:45:42 -03:00
nxplayer system: update licenses to Apache 2021-06-11 02:42:05 -05:00
nxrecorder Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
ping system/ping[6]: correct the ping return value 2021-06-22 10:28:21 -03:00
ping6 system/ping[6]: correct the ping return value 2021-06-22 10:28:21 -03:00
popen Call posix_spawn with filename as the first argv entry 2021-06-14 07:12:54 -06:00
psmq system/psmq: update to v0.2.1 2021-05-23 23:57:25 +01:00
ramtest system: update licenses to Apache 2021-06-11 02:42:05 -05:00
readline apps/system: fix command history behavior (2) 2021-06-22 10:27:43 -03:00
sched_note system: fix relative path CI error 2021-06-16 09:03:06 -05:00
setlogmask Include debug.h for xerr/xinfo/xwarn caller 2021-05-24 12:33:17 +09:00
spi system: nxstyle fixes 2021-06-11 02:42:05 -05:00
stackmonitor system: nxstyle fixes 2021-06-11 02:42:05 -05:00
system Call posix_spawn with filename as the first argv entry 2021-06-14 07:12:54 -06:00
taskset Include assert.h for DEBUGASSERT caller 2021-05-24 12:34:37 +09:00
tee Makefile: Uros Platise: update licenses to Apache 2021-06-07 21:35:33 -05:00
telnet Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
termcurses system: nxstyle fixes 2021-06-11 02:42:05 -05:00
trace system/trace: Fix fprintf format warnings 2021-01-06 10:27:34 +01:00
ubloxmodem Include debug.h for xerr/xinfo/xwarn caller 2021-05-24 19:52:54 +09:00
usbmsc system: fix relative path CI error 2021-06-16 09:03:06 -05:00
vi system: update licenses to Apache 2021-06-11 02:42:05 -05:00
zmodem system: nxstyle fixes 2021-06-11 02:42:05 -05:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00