WizQTClient icon indicating copy to clipboard operation
WizQTClient copied to clipboard

2.8.3+ does not compile on Arch

Open felixonmars opened this issue 5 years ago • 0 comments

/build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/WizObject.cpp: In member function ‘bool WIZTAGDATA::toJson(QString, Json::Value&) const’:
/build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/WizObject.cpp:337:20: error: conversion from ‘const qint64’ {aka ‘const long long int’} to ‘Json::Value’ is ambiguous
  337 |     value["pos"] = nPosition;
      |                    ^~~~~~~~~
In file included from /build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/WizObject.cpp:5:
/build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/jsoncpp/json/json.h:756:3: note: candidate: ‘Json::Value::Value(bool)’
  756 |   Value(bool value);
      |   ^~~~~
/build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/jsoncpp/json/json.h:733:3: note: candidate: ‘Json::Value::Value(double)’
  733 |   Value(double value);
      |   ^~~~~
/build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/jsoncpp/json/json.h:731:3: note: candidate: ‘Json::Value::Value(Json::Value::UInt64)’
  731 |   Value(UInt64 value);
      |   ^~~~~
/build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/jsoncpp/json/json.h:730:3: note: candidate: ‘Json::Value::Value(Json::Value::Int64)’
  730 |   Value(Int64 value);
      |   ^~~~~
/build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/jsoncpp/json/json.h:728:3: note: candidate: ‘Json::Value::Value(Json::Value::UInt)’
  728 |   Value(UInt value);
      |   ^~~~~
/build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/jsoncpp/json/json.h:727:3: note: candidate: ‘Json::Value::Value(Json::Value::Int)’
  727 |   Value(Int value);
      |   ^~~~~
/build/wiznote/src/WizQTClient-be113e9be899c1559ae5b3a093ee5f05e0364eec/src/share/jsoncpp/json/json.h:767:26: note:   initializing argument 1 of ‘Json::Value& Json::Value::operator=(Json::Value)’
  767 |   Value& operator=(Value other);
      |                    ~~~~~~^~~~~

felixonmars avatar Apr 15 '20 16:04 felixonmars