[ 
https://issues.apache.org/jira/browse/MYNEWT-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marko Kiiskila resolved MYNEWT-276.
-----------------------------------
    Resolution: Fixed

This was fixed by typecasting isspace() argument to unsigned char. Warnings 
were generated due to newlib implementation of isspace() together with our 
default compiler warning.

> many builds fail with this error
> --------------------------------
>
>                 Key: MYNEWT-276
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-276
>             Project: Mynewt
>          Issue Type: Bug
>            Reporter: Paul Dietrich
>            Assignee: Marko Kiiskila
>             Fix For: 0.8.0
>
>
> Compiling config_line.c
> config_line.c: In function 'conf_line_parse':
> config_line.c:41:13: error: array subscript has type 'char' 
> [-Werror=char-subscripts]
>              if (!isspace(*cp)) {
>              ^
> config_line.c:50:13: error: array subscript has type 'char' 
> [-Werror=char-subscripts]
>              } else if (isspace(*cp)) {
>              ^
> config_line.c:55:13: error: array subscript has type 'char' 
> [-Werror=char-subscripts]
>              if (!isspace(*cp)) {
>              ^
> config_line.c:61:13: error: array subscript has type 'char' 
> [-Werror=char-subscripts]
>              if (isspace(*cp)) {
>              ^
> cc1: all warnings being treated as errors
> Error: exit status 1
> exit status 1
> targets/my_blinky_sim1
>     app=@apache-mynewt-core/apps/blinky
>     bsp=@apache-mynewt-core/hw/bsp/bmd300eval
>     build_profile=debug
> targets/my_blinky_sim2
>     app=@apache-mynewt-core/apps/blinky
>     bsp=@apache-mynewt-core/hw/bsp/nrf52pdk
>     build_profile=debug
> targets/my_blinky_sim3
>     app=@apache-mynewt-core/apps/blinky
>     bsp=@apache-mynewt-core/hw/bsp/olimex_stm32-e407_devboard
>     build_profile=debug
> targets/my_blinky_sim4
>     app=@apache-mynewt-core/apps/blinky
>     bsp=@apache-mynewt-core/hw/bsp/nrf51dk
>     build_profile=debug
> targets/my_blinky_sim5
>     app=@apache-mynewt-core/apps/blinky
>     bsp=@apache-mynewt-core/hw/bsp/nrf51dk-16kbram
>     build_profile=debug
> targets/my_blinky_sim6
>     app=@apache-mynewt-core/apps/blinky
>     bsp=@mynewt_arduino_zero/hw/bsp/arduino_zero
>     build_profile=debug
>     features=arduino_zero 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to