Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .mbedignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github/
examples/
scripts/
test/
third-party/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
ArduinoJson: change log
=======================

HEAD
----

* Fixed `-Wparentheses` warning introduced in v5.6.5 (PR #335 by @nuket)

v5.6.5
------

Expand Down
4 changes: 2 additions & 2 deletions include/ArduinoJson/JsonVariant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ class JsonVariant : public JsonVariantBase<JsonVariant> {
}
bool isString() const {
return _type == Internals::JSON_STRING ||
_type == Internals::JSON_UNPARSED && _content.asString &&
!strcmp("null", _content.asString);
(_type == Internals::JSON_UNPARSED && _content.asString &&
!strcmp("null", _content.asString));
}

// The current type of the variant
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
-Wformat=2
-Winit-self
-Wmissing-include-dirs
-Wno-parentheses
-Wparentheses
-Wno-sign-conversion
-Wno-unused
-Wno-variadic-macros
Expand Down