File tree 7 files changed +20
-10
lines changed
7 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ ENDMACRO()
59
59
#SET( JSONCPP_VERSION_MAJOR X )
60
60
#SET( JSONCPP_VERSION_MINOR Y )
61
61
#SET( JSONCPP_VERSION_PATCH Z )
62
- SET ( JSONCPP_VERSION 1.8.2 )
62
+ SET ( JSONCPP_VERSION 1.8.3 )
63
63
jsoncpp_parse_version( ${JSONCPP_VERSION} JSONCPP_VERSION )
64
64
#IF(NOT JSONCPP_VERSION_FOUND)
65
65
# MESSAGE(FATAL_ERROR "Failed to parse version string properly. Expect X.Y.Z")
66
66
#ENDIF(NOT JSONCPP_VERSION_FOUND)
67
- SET ( JSONCPP_SOVERSION 11 )
67
+ SET ( JSONCPP_SOVERSION 19 )
68
68
SET ( JSONCPP_USE_SECURE_MEMORY "0" CACHE STRING "-D...=1 to use memory-wiping allocator for STL" )
69
69
70
70
MESSAGE (STATUS "JsonCpp Version: ${JSONCPP_VERSION_MAJOR} .${JSONCPP_VERSION_MINOR} .${JSONCPP_VERSION_PATCH} " )
Original file line number Diff line number Diff line change 3
3
#ifndef JSON_VERSION_H_INCLUDED
4
4
# define JSON_VERSION_H_INCLUDED
5
5
6
- # define JSONCPP_VERSION_STRING "1.8.2 "
6
+ # define JSONCPP_VERSION_STRING "1.8.3 "
7
7
# define JSONCPP_VERSION_MAJOR 1
8
8
# define JSONCPP_VERSION_MINOR 8
9
- # define JSONCPP_VERSION_PATCH 2
9
+ # define JSONCPP_VERSION_PATCH 3
10
10
# define JSONCPP_VERSION_QUALIFIER
11
11
# define JSONCPP_VERSION_HEXA ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8))
12
12
Original file line number Diff line number Diff line change 1
1
project (
2
2
' jsoncpp' ,
3
3
' cpp' ,
4
- version : ' 1.8.2 ' ,
4
+ version : ' 1.8.3 ' ,
5
5
default_options : [
6
6
' buildtype=release' ,
7
7
' warning_level=1' ],
@@ -52,7 +52,7 @@ jsoncpp_lib = library(
52
52
' src/lib_json/json_reader.cpp' ,
53
53
' src/lib_json/json_value.cpp' ,
54
54
' src/lib_json/json_writer.cpp' ],
55
- soversion : 18 ,
55
+ soversion : 19 ,
56
56
install : true ,
57
57
include_directories : jsoncpp_include_directories)
58
58
Original file line number Diff line number Diff line change 3
3
// recognized in your jurisdiction.
4
4
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5
5
6
+ #pragma GCC diagnostic push
7
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
8
+
6
9
/* This executable is used for testing parser/writer using real JSON files.
7
10
*/
8
11
@@ -324,3 +327,5 @@ int main(int argc, const char* argv[]) {
324
327
return 1 ;
325
328
}
326
329
}
330
+
331
+ #pragma GCC diagnostic pop
Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ void StyledWriter::writeCommentBeforeValue(const Value& root) {
582
582
while (iter != comment.end ()) {
583
583
document_ += *iter;
584
584
if (*iter == ' \n ' &&
585
- (iter != comment.end () && *(iter + 1 ) == ' /' ))
585
+ (( iter+ 1 ) != comment.end () && *(iter + 1 ) == ' /' ))
586
586
writeIndent ();
587
587
++iter;
588
588
}
@@ -798,7 +798,7 @@ void StyledStreamWriter::writeCommentBeforeValue(const Value& root) {
798
798
while (iter != comment.end ()) {
799
799
*document_ << *iter;
800
800
if (*iter == ' \n ' &&
801
- (iter != comment.end () && *(iter + 1 ) == ' /' ))
801
+ (( iter+ 1 ) != comment.end () && *(iter + 1 ) == ' /' ))
802
802
// writeIndent(); // would include newline
803
803
*document_ << indentString_;
804
804
++iter;
@@ -1086,7 +1086,7 @@ void BuiltStyledStreamWriter::writeCommentBeforeValue(Value const& root) {
1086
1086
while (iter != comment.end ()) {
1087
1087
*sout_ << *iter;
1088
1088
if (*iter == ' \n ' &&
1089
- (iter != comment.end () && *(iter + 1 ) == ' /' ))
1089
+ (( iter+ 1 ) != comment.end () && *(iter + 1 ) == ' /' ))
1090
1090
// writeIndent(); // would write extra newline
1091
1091
*sout_ << indentString_;
1092
1092
++iter;
Original file line number Diff line number Diff line change 3
3
// recognized in your jurisdiction.
4
4
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5
5
6
+ #pragma GCC diagnostic push
7
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
8
+
6
9
#include " jsontest.h"
7
10
#include < json/config.h>
8
11
#include < json/json.h>
@@ -2587,3 +2590,5 @@ int main(int argc, const char* argv[]) {
2587
2590
2588
2591
return runner.runCommandLine (argc, argv);
2589
2592
}
2593
+
2594
+ #pragma GCC diagnostic pop
Original file line number Diff line number Diff line change 1
- 1.8.2
1
+ 1.8.3
You can’t perform that action at this time.
0 commit comments