git: a3ba5254df09 - main - devel/bossa: fix the build with clang-15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Feb 2023 04:37:53 UTC
The branch main has been updated by kevans:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a3ba5254df09a7c732c91a5b75ea2f075c4b3ce8
commit a3ba5254df09a7c732c91a5b75ea2f075c4b3ce8
Author: Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2023-02-13 04:16:13 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-02-13 04:37:36 +0000
devel/bossa: fix the build with clang-15
Using `move()` without qualifying it now throws a warning about an
unqualified call to 'std::move', despite any prior `using` declaration;
prefix it appropriately.
MFH: 2023Q1
---
devel/bossa/files/patch-src_Samba.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/devel/bossa/files/patch-src_Samba.cpp b/devel/bossa/files/patch-src_Samba.cpp
new file mode 100644
index 000000000000..1144c75c3c03
--- /dev/null
+++ b/devel/bossa/files/patch-src_Samba.cpp
@@ -0,0 +1,11 @@
+--- src/Samba.cpp.orig 2023-02-13 04:05:19 UTC
++++ src/Samba.cpp
+@@ -141,7 +141,7 @@ Samba::connect(SerialPort::Ptr port, int bps)
+ bool
+ Samba::connect(SerialPort::Ptr port, int bps)
+ {
+- _port = move(port);
++ _port = std::move(port);
+
+ // Try to connect at a high speed if USB
+ _isUsb = _port->isUsb();