pkg/tinycbor: remove unncessary patch
This commit is contained in:
parent
b203c5e541
commit
f894862f61
@ -1,5 +1,7 @@
|
|||||||
MODULE := tinycbor
|
MODULE := tinycbor
|
||||||
|
|
||||||
|
CFLAGS += -Wno-maybe-uninitialized
|
||||||
|
|
||||||
SRC += cborerrorstrings.c
|
SRC += cborerrorstrings.c
|
||||||
SRC += cborencoder.c
|
SRC += cborencoder.c
|
||||||
SRC += cborencoder_close_container_checked.c
|
SRC += cborencoder_close_container_checked.c
|
||||||
|
|||||||
@ -1,25 +0,0 @@
|
|||||||
From d53d44a42a8e9c4c72438dd48e2663ec7f717397 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gunar Schorcht <gunar@schorcht.net>
|
|
||||||
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
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user