From 7b40ccea8548c5641cb500243e54c20e67aea051 Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Tue, 11 Jan 2022 22:08:51 +0100 Subject: [PATCH] audio_in: fix compile errors with strict warnings enabled Fixes #4373 --- .../os/include/audio_in_session/audio_in_session.h | 2 +- repos/os/include/audio_in_session/rpc_object.h | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/repos/os/include/audio_in_session/audio_in_session.h b/repos/os/include/audio_in_session/audio_in_session.h index fd37fa3282..f2fe2b39e5 100644 --- a/repos/os/include/audio_in_session/audio_in_session.h +++ b/repos/os/include/audio_in_session/audio_in_session.h @@ -182,7 +182,7 @@ class Audio_in::Stream * * \return position in stream queue */ - unsigned packet_position(Packet *packet) { return packet - &_buf[0]; } + unsigned packet_position(Packet *packet) { return (unsigned)(packet - &_buf[0]); } /** * Check if stream queue is empty diff --git a/repos/os/include/audio_in_session/rpc_object.h b/repos/os/include/audio_in_session/rpc_object.h index a2135bd361..6916c00776 100644 --- a/repos/os/include/audio_in_session/rpc_object.h +++ b/repos/os/include/audio_in_session/rpc_object.h @@ -32,8 +32,8 @@ class Audio_in::Session_rpc_object : public Genode::Rpc_object