Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cross/bossa/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ default_variants +wxwidgets
depends_lib-append port:readline

# Remove default CXXFLAGS so MacPorts can set them.
patchfiles patch-Makefile
patchfiles patch-Makefile \
patch-clang_Wunqualified-std-cast-call.diff

# The Makefile is racy
use_parallel_build no
Expand Down
28 changes: 28 additions & 0 deletions cross/bossa/files/patch-clang_Wunqualified-std-cast-call.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 6e54973c3c758674c3d04b5e2cf12e097006f6a3 Mon Sep 17 00:00:00 2001
From: Mark Mentovai <mark@mentovai.com>
Date: Fri, 29 Sep 2023 11:03:26 -0400
Subject: [PATCH] Fix build with clang -Wunqualified-std-cast-call

This warning is enabled by default since clang 15. This fixes a build
error with those recent versions of clang because BOSSA builds with
-Werror.
---
src/Samba.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Samba.cpp src/Samba.cpp
index 490e3936a445..e2076bb6c194 100644
--- src/Samba.cpp
+++ src/Samba.cpp
@@ -141,7 +141,7 @@ Samba::init()
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();
--
2.42.0