forked from bblanchon/ArduinoJson
Fix minor issues for GCC
This commit is contained in:
@ -1,12 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Arduino JSON library
|
* Arduino JSON library
|
||||||
* Benoit Blanchon 2014 - MIT License
|
* Benoit Blanchon 2014 - MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef ARDUINO
|
#ifndef ARDUINO
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
class Print;
|
class Print;
|
||||||
|
|
||||||
class Printable
|
class Printable
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
#include <JsonArray.h>
|
||||||
#include <JsonObject.h>
|
#include <JsonObject.h>
|
||||||
#include <JsonValue.h>
|
#include <JsonValue.h>
|
||||||
#include <StaticJsonBuffer.h>
|
#include <StaticJsonBuffer.h>
|
||||||
@ -126,7 +127,7 @@ TEST_F(JsonObject_Serialization_Tests, OneFalse)
|
|||||||
|
|
||||||
TEST_F(JsonObject_Serialization_Tests, OneEmptyNestedArrayViaProxy)
|
TEST_F(JsonObject_Serialization_Tests, OneEmptyNestedArrayViaProxy)
|
||||||
{
|
{
|
||||||
auto nestedArray = json.createArray();
|
JsonArray nestedArray = json.createArray();
|
||||||
|
|
||||||
object["key"] = nestedArray;
|
object["key"] = nestedArray;
|
||||||
|
|
||||||
@ -135,7 +136,7 @@ TEST_F(JsonObject_Serialization_Tests, OneEmptyNestedArrayViaProxy)
|
|||||||
|
|
||||||
TEST_F(JsonObject_Serialization_Tests, OneEmptyNestedObjectViaProxy)
|
TEST_F(JsonObject_Serialization_Tests, OneEmptyNestedObjectViaProxy)
|
||||||
{
|
{
|
||||||
auto nestedArray = json.createObject();
|
JsonObject nestedArray = json.createObject();
|
||||||
|
|
||||||
object["key"] = nestedArray;
|
object["key"] = nestedArray;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user