Fixed Clang warning "register specifier is deprecated" (issue #102)

This commit is contained in:
Benoit Blanchon
2015-08-26 20:49:24 +02:00
parent a8265a799d
commit 0cf8249b14
4 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,11 @@
ArduinoJson: change log
=======================
v5.0.2
------
* Fixed Clang warning "register specifier is deprecated" (issue #102)
v5.0.1
------

View File

@ -1,5 +1,5 @@
name=ArduinoJson
version=5.0.1
version=5.0.2
author=Benoit Blanchon <blog.benoitblanchon.fr>
maintainer=Benoit Blanchon <blog.benoitblanchon.fr>
sentence=An efficient and elegant JSON library for Arduino.

View File

@ -11,6 +11,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
-Wcast-qual
-Wconversion
-Wctor-dtor-privacy
-Wdeprecated-register
-Wdisabled-optimization
-Werror
-Wextra

View File

@ -16,7 +16,7 @@ using namespace ArduinoJson;
using namespace ArduinoJson::Internals;
bool JsonParser::skip(char charToSkip) {
register const char *ptr = skipSpacesAndComments(_readPtr);
const char *ptr = skipSpacesAndComments(_readPtr);
if (*ptr != charToSkip) return false;
ptr++;
_readPtr = skipSpacesAndComments(ptr);