diff options
author | tobik <tobik@FreeBSD.org> | 2018-09-01 17:42:10 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2018-09-01 17:42:10 +0800 |
commit | a649cf3ec6741fd0c915145ba8538a20d1fa7de7 (patch) | |
tree | 18df9bfd6948e2190a4ad1a44219dc3c88651819 /finance | |
parent | 02d1110ed7f4929e16508f886bc8f8884087325b (diff) | |
download | freebsd-ports-gnome-a649cf3ec6741fd0c915145ba8538a20d1fa7de7.tar.gz freebsd-ports-gnome-a649cf3ec6741fd0c915145ba8538a20d1fa7de7.tar.zst freebsd-ports-gnome-a649cf3ec6741fd0c915145ba8538a20d1fa7de7.zip |
finance/openhbci: Fix build with Clang 6
value.cpp:145:10: error: no viable conversion from 'std::__1::basic_istream<char>' to 'bool'
bool readsuccess = (ist >> _value);
^ ~~~~~~~~~~~~~~~
http://beefy12.nyi.freebsd.org/data/head-amd64-default/p478276_s338342/logs/errors/openhbci-0.9.17.2_1.log
api.cpp:1263:13: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
"*"PLUGIN_EXT,
^
Diffstat (limited to 'finance')
3 files changed, 38 insertions, 0 deletions
diff --git a/finance/openhbci/files/patch-src_openhbci_api.cpp b/finance/openhbci/files/patch-src_openhbci_api.cpp new file mode 100644 index 000000000000..2c67f7fe888d --- /dev/null +++ b/finance/openhbci/files/patch-src_openhbci_api.cpp @@ -0,0 +1,11 @@ +--- src/openhbci/api.cpp.orig 2018-09-01 02:43:47 UTC ++++ src/openhbci/api.cpp +@@ -1260,7 +1260,7 @@ void API::_addPluginsFromDirs(Pointer<MediumPluginList + goon=false; + else { + if (-1!=parser::cmpPattern(entry, +- "*"PLUGIN_EXT, ++ "*" PLUGIN_EXT, + false)) { + Pointer<MediumPluginFile> mpf; + diff --git a/finance/openhbci/files/patch-src_openhbci_core_value.cpp b/finance/openhbci/files/patch-src_openhbci_core_value.cpp new file mode 100644 index 000000000000..bac63df180b2 --- /dev/null +++ b/finance/openhbci/files/patch-src_openhbci_core_value.cpp @@ -0,0 +1,16 @@ +value.cpp:145:10: error: no viable conversion from 'std::__1::basic_istream<char>' to 'bool' + bool readsuccess = (ist >> _value); + ^ ~~~~~~~~~~~~~~~ + +--- src/openhbci/core/value.cpp.orig 2018-09-01 02:40:24 UTC ++++ src/openhbci/core/value.cpp +@@ -142,7 +142,8 @@ Value::Value(const string &strvalue) + setlocale(LC_NUMERIC, "C"); + + // Read float (double) value according to C-locale rules. +- bool readsuccess = (ist >> _value); ++ ist >> _value; ++ bool readsuccess = ist.good(); + + // Reset locale to cached string. + setlocale(LC_NUMERIC, oldloc.c_str()); diff --git a/finance/openhbci/files/patch-src_plugins_keyfile_keyfile.cpp b/finance/openhbci/files/patch-src_plugins_keyfile_keyfile.cpp new file mode 100644 index 000000000000..e96e467c7499 --- /dev/null +++ b/finance/openhbci/files/patch-src_plugins_keyfile_keyfile.cpp @@ -0,0 +1,11 @@ +--- src/plugins/keyfile/keyfile.cpp.orig 2018-09-01 02:44:43 UTC ++++ src/plugins/keyfile/keyfile.cpp +@@ -314,7 +314,7 @@ Error _checkVersion(const API *api) { + ERROR_LEVEL_NORMAL, + HBCI_ERROR_CODE_MEDIUM, + ERROR_ADVISE_DONTKNOW, +- "need OpenHBCI v"OPENHBCI_VERSION_FULL_STRING ++ "need OpenHBCI v" OPENHBCI_VERSION_FULL_STRING + " or newer"); + } + |