From 61949b0e4ab4bba38781adb35b302a0c6f54e836 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sat, 19 Oct 2019 14:16:23 +0200 Subject: [PATCH 1/2] pkg/tinycbor: fix "uninitialized variable" warning On ESP32 and new ESP8266 platform, the compilation of the package fails since a local variable is potentially used uninitialized. Therefore, the variable is initialized with a default value. --- .../0001-fix-compilation-warning-error.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkg/tinycbor/patches/0001-fix-compilation-warning-error.patch diff --git a/pkg/tinycbor/patches/0001-fix-compilation-warning-error.patch b/pkg/tinycbor/patches/0001-fix-compilation-warning-error.patch new file mode 100644 index 000000000000..77e9d9cdd627 --- /dev/null +++ b/pkg/tinycbor/patches/0001-fix-compilation-warning-error.patch @@ -0,0 +1,25 @@ +From d53d44a42a8e9c4c72438dd48e2663ec7f717397 Mon Sep 17 00:00:00 2001 +From: Gunar Schorcht +Date: Sat, 19 Oct 2019 14:02:02 +0200 +Subject: [PATCH 1/1] fix compilation warning/error + +--- + src/cborvalidation.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/cborvalidation.c b/src/cborvalidation.c +index 08c3511..28b99c4 100644 +--- a/src/cborvalidation.c ++++ b/src/cborvalidation.c +@@ -379,7 +379,7 @@ static inline CborError validate_floating_point(CborValue *it, CborType type, ui + CborError err; + int r; + double val; +- float valf; ++ float valf = 0; /* fixes the "uninitialized variable" compiler warning */ + uint16_t valf16; + + if (type != CborDoubleType) { +-- +2.17.1 + From b6b12527a9fad623c9a16dc3806fd58cdb2367ad Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sun, 27 Oct 2019 09:58:24 +0100 Subject: [PATCH 2/2] tests/pkg_tinycbor: esp32 boards removed from blacklist --- tests/pkg_tinycbor/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/pkg_tinycbor/Makefile b/tests/pkg_tinycbor/Makefile index 2594ffe82a59..c1539a7f53e9 100644 --- a/tests/pkg_tinycbor/Makefile +++ b/tests/pkg_tinycbor/Makefile @@ -3,9 +3,7 @@ include ../Makefile.tests_common # No 8 bit and 16 bit support yet BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \ arduino-mega2560 arduino-nano \ - arduino-uno atmega328p chronos esp32-mh-et-live-minikit \ - esp32-olimex-evb esp32-wemos-lolin-d32-pro \ - esp32-wroom-32 esp32-wrover-kit microduino-corerf \ + arduino-uno atmega328p chronos microduino-corerf \ mega-xplained msb-430 msb-430h telosb waspmote-pro \ wsn430-v1_3b wsn430-v1_4 z1 \