ujur007 opened a new issue, #3310:
URL: https://github.com/apache/mynewt-core/issues/3310
I tried to build a simple ble advertiser application in apps/advertiser and
got the error related to implicit declaration for the function and type cast of
a variable.
Here is what my target looks like.
```
targets/blues
app=@apache-mynewt-nimble/apps/advertiser
bsp=@apache-mynewt-core/hw/bsp/nordic_pca10056
build_profile=debug
```
The error when trying to build the application is as follows. For me the
application worked when I did some hacks by commenting the code that throws
error.
```
Error: repos/apache-mynewt-core/sys/log/full/src/log.c: In function
'log_module_get_name':
repos/apache-mynewt-core/sys/log/full/src/log.c:236:12: error: implicit
declaration of function 'logcfg_log_module_name'
[-Werror=implicit-function-declaration]
236 | name = logcfg_log_module_name(module);
| ^~~~~~~~~~~~~~~~~~~~~~
repos/apache-mynewt-core/sys/log/full/src/log.c:236:10: error: assignment to
'const char *' from 'int' makes pointer from integer without a cast
[-Werror=int-conversion]
236 | name = logcfg_log_module_name(module);
| ^
cc1: all warnings being treated as errors
```
GCC version.
> /gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc
OS
Linux mint 64-bit
--
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]