Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 5b51840c6 -> 83aae3d46


get newlib compiling with Mynewt source again


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/83aae3d4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/83aae3d4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/83aae3d4

Branch: refs/heads/develop
Commit: 83aae3d46f8505e669bebafc57dfd7a53daf9cfe
Parents: 5b51840
Author: Sterling Hughes <sterl...@apache.org>
Authored: Tue Oct 18 20:56:53 2016 -0700
Committer: Sterling Hughes <sterl...@apache.org>
Committed: Tue Oct 18 20:56:53 2016 -0700

----------------------------------------------------------------------
 compiler/arm-none-eabi-m0/compiler.yml  | 2 +-
 compiler/arm-none-eabi-m4/compiler.yml  | 2 +-
 encoding/base64/src/hex.c               | 2 +-
 encoding/json/src/json_decode.c         | 2 +-
 hw/drivers/uart/uart_hal/src/uart_hal.c | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/83aae3d4/compiler/arm-none-eabi-m0/compiler.yml
----------------------------------------------------------------------
diff --git a/compiler/arm-none-eabi-m0/compiler.yml 
b/compiler/arm-none-eabi-m0/compiler.yml
index 318a2ac..15bb043 100644
--- a/compiler/arm-none-eabi-m0/compiler.yml
+++ b/compiler/arm-none-eabi-m0/compiler.yml
@@ -29,6 +29,6 @@ compiler.flags.default: -mcpu=cortex-m0 -mthumb-interwork 
-mthumb -Wall -Werror
 compiler.flags.optimized: [compiler.flags.default, -Os -ggdb]
 compiler.flags.debug: [compiler.flags.default, -O1 -ggdb]
 
-compiler.ld.flags: -static -lgcc -Wl,--gc-sections
+compiler.ld.flags: -static -specs=nosys.specs -lgcc -Wl,--gc-sections
 compiler.ld.resolve_circular_deps: true
 compiler.ld.mapfile: true

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/83aae3d4/compiler/arm-none-eabi-m4/compiler.yml
----------------------------------------------------------------------
diff --git a/compiler/arm-none-eabi-m4/compiler.yml 
b/compiler/arm-none-eabi-m4/compiler.yml
index 9fa5aab..66fc094 100644
--- a/compiler/arm-none-eabi-m4/compiler.yml
+++ b/compiler/arm-none-eabi-m4/compiler.yml
@@ -30,6 +30,6 @@ compiler.flags.default: [compiler.flags.base, -O1 -ggdb]
 compiler.flags.optimized: [compiler.flags.base, -Os -ggdb]
 compiler.flags.debug: [compiler.flags.base, -O1 -ggdb]
 
-compiler.ld.flags: -static -lgcc -Wl,--gc-sections
+compiler.ld.flags: -static -specs=nosys.specs -lgcc -Wl,--gc-sections
 compiler.ld.resolve_circular_deps: true
 compiler.ld.mapfile: true

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/83aae3d4/encoding/base64/src/hex.c
----------------------------------------------------------------------
diff --git a/encoding/base64/src/hex.c b/encoding/base64/src/hex.c
index 44162c2..c38e3a8 100644
--- a/encoding/base64/src/hex.c
+++ b/encoding/base64/src/hex.c
@@ -80,7 +80,7 @@ hex_parse(char *src, int src_len, void *dst_v, int dst_len)
     }
     for (i = 0; i < src_len; i++, src++) {
         c = *src;
-        if (isdigit(c)) {
+        if (isdigit((int) c)) {
             c -= '0';
         } else if (c >= 'a' && c <= 'f') {
             c -= ('a' - 10);

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/83aae3d4/encoding/json/src/json_decode.c
----------------------------------------------------------------------
diff --git a/encoding/json/src/json_decode.c b/encoding/json/src/json_decode.c
index b78bbfd..c1fcbb9 100644
--- a/encoding/json/src/json_decode.c
+++ b/encoding/json/src/json_decode.c
@@ -86,7 +86,7 @@ json_skip_ws(struct json_buffer *jb)
 
     do {
         c = jb->jb_read_next(jb);
-    } while (isspace(c));
+    } while (isspace((int) c));
 
     jb->jb_read_prev(jb);
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/83aae3d4/hw/drivers/uart/uart_hal/src/uart_hal.c
----------------------------------------------------------------------
diff --git a/hw/drivers/uart/uart_hal/src/uart_hal.c 
b/hw/drivers/uart/uart_hal/src/uart_hal.c
index 5617f6b..c99e613 100644
--- a/hw/drivers/uart/uart_hal/src/uart_hal.c
+++ b/hw/drivers/uart/uart_hal/src/uart_hal.c
@@ -123,7 +123,7 @@ uart_hal_init(struct os_dev *odev, void *arg)
     priv->unit = -1;
 
     ch = odev->od_name[strlen(odev->od_name) - 1];
-    if (!isdigit(ch)) {
+    if (!isdigit((int) ch)) {
         return OS_EINVAL;
     }
     priv->unit = ch - '0';

Reply via email to