Skip to content

Commit 2de1802

Browse files
authored
Merge pull request #655 from cdunn2001/fix-649
Fixes #649 Fixes #654
2 parents 4cfae89 + c98e1d8 commit 2de1802

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

Diff for: CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ ENDMACRO()
5959
#SET( JSONCPP_VERSION_MAJOR X )
6060
#SET( JSONCPP_VERSION_MINOR Y )
6161
#SET( JSONCPP_VERSION_PATCH Z )
62-
SET( JSONCPP_VERSION 1.8.2 )
62+
SET( JSONCPP_VERSION 1.8.3 )
6363
jsoncpp_parse_version( ${JSONCPP_VERSION} JSONCPP_VERSION )
6464
#IF(NOT JSONCPP_VERSION_FOUND)
6565
# MESSAGE(FATAL_ERROR "Failed to parse version string properly. Expect X.Y.Z")
6666
#ENDIF(NOT JSONCPP_VERSION_FOUND)
67-
SET( JSONCPP_SOVERSION 11 )
67+
SET( JSONCPP_SOVERSION 19 )
6868
SET( JSONCPP_USE_SECURE_MEMORY "0" CACHE STRING "-D...=1 to use memory-wiping allocator for STL" )
6969

7070
MESSAGE(STATUS "JsonCpp Version: ${JSONCPP_VERSION_MAJOR}.${JSONCPP_VERSION_MINOR}.${JSONCPP_VERSION_PATCH}")

Diff for: include/json/version.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
#ifndef JSON_VERSION_H_INCLUDED
44
# define JSON_VERSION_H_INCLUDED
55

6-
# define JSONCPP_VERSION_STRING "1.8.2"
6+
# define JSONCPP_VERSION_STRING "1.8.3"
77
# define JSONCPP_VERSION_MAJOR 1
88
# define JSONCPP_VERSION_MINOR 8
9-
# define JSONCPP_VERSION_PATCH 2
9+
# define JSONCPP_VERSION_PATCH 3
1010
# define JSONCPP_VERSION_QUALIFIER
1111
# define JSONCPP_VERSION_HEXA ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8))
1212

Diff for: meson.build

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'jsoncpp',
33
'cpp',
4-
version : '1.8.2',
4+
version : '1.8.3',
55
default_options : [
66
'buildtype=release',
77
'warning_level=1'],
@@ -52,7 +52,7 @@ jsoncpp_lib = library(
5252
'src/lib_json/json_reader.cpp',
5353
'src/lib_json/json_value.cpp',
5454
'src/lib_json/json_writer.cpp'],
55-
soversion : 18,
55+
soversion : 19,
5656
install : true,
5757
include_directories : jsoncpp_include_directories)
5858

Diff for: src/jsontestrunner/main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// recognized in your jurisdiction.
44
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
55

6+
#pragma GCC diagnostic push
7+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
8+
69
/* This executable is used for testing parser/writer using real JSON files.
710
*/
811

@@ -324,3 +327,5 @@ int main(int argc, const char* argv[]) {
324327
return 1;
325328
}
326329
}
330+
331+
#pragma GCC diagnostic pop

Diff for: src/lib_json/json_writer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ void StyledWriter::writeCommentBeforeValue(const Value& root) {
582582
while (iter != comment.end()) {
583583
document_ += *iter;
584584
if (*iter == '\n' &&
585-
(iter != comment.end() && *(iter + 1) == '/'))
585+
((iter+1) != comment.end() && *(iter + 1) == '/'))
586586
writeIndent();
587587
++iter;
588588
}
@@ -798,7 +798,7 @@ void StyledStreamWriter::writeCommentBeforeValue(const Value& root) {
798798
while (iter != comment.end()) {
799799
*document_ << *iter;
800800
if (*iter == '\n' &&
801-
(iter != comment.end() && *(iter + 1) == '/'))
801+
((iter+1) != comment.end() && *(iter + 1) == '/'))
802802
// writeIndent(); // would include newline
803803
*document_ << indentString_;
804804
++iter;
@@ -1086,7 +1086,7 @@ void BuiltStyledStreamWriter::writeCommentBeforeValue(Value const& root) {
10861086
while (iter != comment.end()) {
10871087
*sout_ << *iter;
10881088
if (*iter == '\n' &&
1089-
(iter != comment.end() && *(iter + 1) == '/'))
1089+
((iter+1) != comment.end() && *(iter + 1) == '/'))
10901090
// writeIndent(); // would write extra newline
10911091
*sout_ << indentString_;
10921092
++iter;

Diff for: src/test_lib_json/main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// recognized in your jurisdiction.
44
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
55

6+
#pragma GCC diagnostic push
7+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
8+
69
#include "jsontest.h"
710
#include <json/config.h>
811
#include <json/json.h>
@@ -2587,3 +2590,5 @@ int main(int argc, const char* argv[]) {
25872590

25882591
return runner.runCommandLine(argc, argv);
25892592
}
2593+
2594+
#pragma GCC diagnostic pop

Diff for: version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.2
1+
1.8.3

0 commit comments

Comments
 (0)