From 354842fbc148e26677d99693793bf5f89f18a085 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 2 Jul 2018 23:38:48 -0700 Subject: Update TinyCBOR to 1b233087a6e6b6be297e69bfcce5ed36f338c91d MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From the fork at https://github.com/thiagomacieira/tinycbor Change-Id: I117816bf0f5e469b8d34fffd153dc88683051208 Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Edward Welbourne --- src/corelib/serialization/qcborstream.cpp | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'src/corelib/serialization') diff --git a/src/corelib/serialization/qcborstream.cpp b/src/corelib/serialization/qcborstream.cpp index 8b7a1ee0c3..ce1b981f8f 100644 --- a/src/corelib/serialization/qcborstream.cpp +++ b/src/corelib/serialization/qcborstream.cpp @@ -58,12 +58,15 @@ QT_WARNING_DISABLE_GCC("-Wunused-function") QT_WARNING_DISABLE_CLANG("-Wunused-function") QT_WARNING_DISABLE_CLANG("-Wundefined-internal") QT_WARNING_DISABLE_MSVC(4334) // '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) + +#define CBOR_ENCODER_NO_CHECK_USER + +#define CBOR_NO_VALIDATION_API 1 +#define CBOR_NO_PRETTY_API 1 #define CBOR_API static inline #define CBOR_PRIVATE_API static inline #define CBOR_INLINE_API static inline -#define CBOR_ENCODER_NO_CHECK_USER - #include static CborError qt_cbor_encoder_write_callback(void *token, const void *data, size_t len, CborEncoderAppendType); @@ -97,26 +100,6 @@ static CborError _cbor_value_dup_string(const CborValue *, void **, size_t *, Cb Q_UNREACHABLE(); return CborErrorInternalError; } -static CborError cbor_value_to_pretty_stream(CborStreamFunction, void*, CborValue*, int) -{ - Q_UNREACHABLE(); - return CborErrorInternalError; -} -static CborError cbor_value_to_pretty_advance(FILE*, CborValue*) -{ - Q_UNREACHABLE(); - return CborErrorInternalError; -} -static CborError cbor_value_to_pretty_advance_flags(FILE *, CborValue *, int) -{ - Q_UNREACHABLE(); - return CborErrorInternalError; -} -static CborError cbor_value_validate(const CborValue *, int) -{ - Q_UNREACHABLE(); - return CborErrorInternalError; -} QT_WARNING_POP Q_DECLARE_TYPEINFO(CborEncoder, Q_PRIMITIVE_TYPE); -- cgit v1.2.3