Skip to content

Commit

Permalink
Merge pull request ethereum#3913 from ethereum/jsoncpp-version-assert
Browse files Browse the repository at this point in the history
Add static_assert for the correct jsoncpp version
  • Loading branch information
axic authored Apr 17, 2018
2 parents 2be2988 + 0bf3db3 commit 842fd0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libdevcore/JSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@

using namespace std;

static_assert(
(JSONCPP_VERSION_MAJOR == 1) && (JSONCPP_VERSION_MINOR == 7) && (JSONCPP_VERSION_PATCH == 7),
"Unexpected jsoncpp version: " JSONCPP_VERSION_STRING ". Expecting 1.7.7."
);

namespace dev
{

Expand Down

0 comments on commit 842fd0c

Please sign in to comment.