forked from bblanchon/ArduinoJson
Fixed Clang warning "register specifier is deprecated" (issue #102)
This commit is contained in:
1 parent
a8265a799d
commit
0cf8249b14
4 files changed
+8
-2
No files matched your search
@@ -11,6 +11,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
||||
-Wcast-qual
|
||||
-Wconversion
|
||||
-Wctor-dtor-privacy
|
||||
-Wdeprecated-register
|
||||
-Wdisabled-optimization
|
||||
-Werror
|
||||
-Wextra
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user