Skip to content

Commit 9707c89

Browse files
Mauro Passerinoapojomovsky
authored andcommitted
Fixes for Clang builds
1 parent 4974f90 commit 9707c89

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

rclcpp/include/rclcpp/experimental/action_client_intra_process.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class ActionClientIntraProcess : public ActionClientIntraProcessBase
182182
auto data = std::move(feedback_buffer_->consume());
183183
return std::static_pointer_cast<void>(data);
184184
} else if (is_status_ready_) {
185-
auto data = std::move(status_buffer_->consume());
185+
auto data = status_buffer_->consume();
186186
return std::static_pointer_cast<void>(data);
187187
} else {
188188
throw std::runtime_error("Taking data from intra-process action client but nothing is ready");

rclcpp/include/rclcpp/experimental/buffers/ring_buffer_implementation.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
6262
*
6363
* \param request the element to be stored in the ring buffer
6464
*/
65-
void enqueue(BufferT request)
65+
void enqueue(BufferT request) override
6666
{
6767
std::lock_guard<std::mutex> lock(mutex_);
6868

@@ -82,7 +82,7 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
8282
*
8383
* \return the element that is being removed from the ring buffer
8484
*/
85-
BufferT dequeue()
85+
BufferT dequeue() override
8686
{
8787
std::lock_guard<std::mutex> lock(mutex_);
8888

@@ -128,7 +128,7 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
128128
*
129129
* \return `true` if there is data and `false` otherwise
130130
*/
131-
inline bool has_data() const
131+
inline bool has_data() const override
132132
{
133133
std::lock_guard<std::mutex> lock(mutex_);
134134
return has_data_();
@@ -147,7 +147,7 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
147147
return is_full_();
148148
}
149149

150-
void clear() {}
150+
void clear() override {}
151151

152152
private:
153153
/// Get the next index value for the ring buffer

rclcpp/include/rclcpp/experimental/client_intra_process.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class ClientIntraProcess : public ClientIntraProcessBase
7676
virtual ~ClientIntraProcess() = default;
7777

7878
bool
79-
is_ready(rcl_wait_set_t * wait_set)
79+
is_ready(rcl_wait_set_t * wait_set) override
8080
{
8181
(void) wait_set;
8282
return buffer_->has_data();
@@ -97,7 +97,7 @@ class ClientIntraProcess : public ClientIntraProcessBase
9797
return std::static_pointer_cast<void>(data);
9898
}
9999

100-
void execute(std::shared_ptr<void> & data)
100+
void execute(std::shared_ptr<void> & data) override
101101
{
102102
if (!data) {
103103
throw std::runtime_error("'data' is empty");

0 commit comments

Comments
 (0)