xiaoxiang781216 commented on PR #3206:
URL: https://github.com/apache/nuttx-apps/pull/3206#issuecomment-3508409973
@nuttxs please fix the compiler error:
```
====================================================================================
Configuration/Tool: stm3240g-eval/discover,CONFIG_ARM_TOOLCHAIN_GNU_EABI
2025-11-09 10:25:57
------------------------------------------------------------------------------------
Cleaning...
Configuring...
Disabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
Enabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
Building NuttX...
chip/stm32_gpio.c:44:11: note: '#pragma message:
CONFIG_STM32_USE_LEGACY_PINMAP will be deprecated migrate board.h see
tools/stm32_pinmap_tool.py'
44 | # pragma message "CONFIG_STM32_USE_LEGACY_PINMAP will be deprecated
migrate board.h see tools/stm32_pinmap_tool.py"
| ^~~~~~~
discover_main.c: In function 'discover_main':
Error: discover_main.c:155:21: error: '(struct in_addr *)&ds.dnsaddr' is a
pointer; did you mean to use '->'?
155 | if (ds.dnsaddr.s_addr != 0)
| ^
| ->
Error: discover_main.c:157:34: error: passing argument 1 of
'netlib_set_ipv4dnsaddr' from incompatible pointer type
[-Werror=incompatible-pointer-types]
157 | netlib_set_ipv4dnsaddr(&ds.dnsaddr);
| ^~~~~~~~~~~
| |
| struct in_addr (*)[1]
In file included from discover_main.c:37:
/github/workspace/sources/apps/include/netutils/netlib.h:484:54: note:
expected 'const struct in_addr *' but argument is of type 'struct in_addr
(*)[1]'
484 | int netlib_set_ipv4dnsaddr(FAR const struct in_addr *inaddr);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]