mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
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, ^
This commit is contained in:
parent
7774e046ea
commit
fd838aac64
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478665
11
finance/openhbci/files/patch-src_openhbci_api.cpp
Normal file
11
finance/openhbci/files/patch-src_openhbci_api.cpp
Normal file
@ -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;
|
||||
|
16
finance/openhbci/files/patch-src_openhbci_core_value.cpp
Normal file
16
finance/openhbci/files/patch-src_openhbci_core_value.cpp
Normal file
@ -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());
|
11
finance/openhbci/files/patch-src_plugins_keyfile_keyfile.cpp
Normal file
11
finance/openhbci/files/patch-src_plugins_keyfile_keyfile.cpp
Normal file
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user