From c800948342067bc1395e49ae61a06acfd2512b02 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Wed, 22 Oct 2014 20:51:29 +0200 Subject: [PATCH] Fixed warning in GCC --- CMakeLists.txt | 2 ++ include/ArduinoJson/Internals/JsonNode.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 994504f4..f3ac5a3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS -W4) +else() + add_definitions(-Wall) endif() add_subdirectory(src) diff --git a/include/ArduinoJson/Internals/JsonNode.hpp b/include/ArduinoJson/Internals/JsonNode.hpp index 64503648..dae15db4 100644 --- a/include/ArduinoJson/Internals/JsonNode.hpp +++ b/include/ArduinoJson/Internals/JsonNode.hpp @@ -55,7 +55,7 @@ namespace ArduinoJson public: JsonNode() - : type(JSON_UNDEFINED), next(0) + : next(0), type(JSON_UNDEFINED) { }