diff options
author | dim <dim@FreeBSD.org> | 2016-04-05 03:00:23 +0800 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-04-05 03:00:23 +0800 |
commit | e9c24867be06d439f30df7be3d625fd41ae905c3 (patch) | |
tree | c69f5212ee98f5148630948df29f52f44433b773 /comms | |
parent | f1832e3ca24fcad04867f45823954133781ce3cc (diff) | |
download | freebsd-ports-gnome-e9c24867be06d439f30df7be3d625fd41ae905c3.tar.gz freebsd-ports-gnome-e9c24867be06d439f30df7be3d625fd41ae905c3.tar.zst freebsd-ports-gnome-e9c24867be06d439f30df7be3d625fd41ae905c3.zip |
During the exp-run in bug 208158, it was found that comms/telldus-core
gives errors with libc++ 3.8.0 [1]:
/wrkdirs/usr/ports/comms/telldus-core/work/telldus-core-2.1.2/service/ProtocolNexa.cpp:59:8: error: call to member function 'insert' is ambiguous
str.insert(0, 1, 2); // Repeat two times
~~~~^~~~~~
This is because the third argument to this std::string method is
supposed to be a char, not an integer. Fix it by using '\x2' instead.
[1] http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_18h30m05s/logs/errors/telldus-core-2.1.2_1.log
Approved by: johan@stromnet.se (maintainer)
PR: 208523
MFH: 2016Q2
Diffstat (limited to 'comms')
-rw-r--r-- | comms/telldus-core/files/patch-service-ProtocolNexa.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/comms/telldus-core/files/patch-service-ProtocolNexa.cpp b/comms/telldus-core/files/patch-service-ProtocolNexa.cpp new file mode 100644 index 000000000000..c95e2f0cdbd3 --- /dev/null +++ b/comms/telldus-core/files/patch-service-ProtocolNexa.cpp @@ -0,0 +1,11 @@ +--- service/ProtocolNexa.cpp.orig 2014-03-31 12:30:09.000000000 +0200 ++++ service/ProtocolNexa.cpp 2016-04-04 13:32:35.124699000 +0200 +@@ -56,7 +56,7 @@ std::string ProtocolNexa::getStringForMe + // We also return the last packet so Device::doAction() doesn't + // report TELLSTICK_ERROR_METHOD_NOT_SUPPORTED + +- str.insert(0, 1, 2); // Repeat two times ++ str.insert(0, 1, '\x2'); // Repeat two times + str.insert(0, 1, 'R'); + for (int i = 0; i < 5; ++i) { + controller->send(str); |