diff --git a/src/media/audio/audio_rtp_session.cpp b/src/media/audio/audio_rtp_session.cpp
index f2238758d5bf9afe7a3fc33d8affcee8a043e223..c89b5044b643aece9e485735278e20c1c1296d35 100644
--- a/src/media/audio/audio_rtp_session.cpp
+++ b/src/media/audio/audio_rtp_session.cpp
@@ -250,9 +250,9 @@ AudioReceiveThread::AudioReceiveThread(const std::string& id,
     : id_(id)
     , format_(format)
     , stream_(sdp)
-    , mtu_(mtu)
     , sdpContext_(new MediaIOHandle(sdp.size(), false, &readFunction,
                                     0, 0, this))
+    , mtu_(mtu)
     , loop_(std::bind(&AudioReceiveThread::setup, this),
             std::bind(&AudioReceiveThread::process, this),
             std::bind(&AudioReceiveThread::cleanup, this))
diff --git a/src/media/video/sinkclient.cpp b/src/media/video/sinkclient.cpp
index d8737723cdaeecbbb8ac1b1d5d17db4f9c2c6890..fb585afcd670c669df74a45c18e2c76d3152ceb8 100644
--- a/src/media/video/sinkclient.cpp
+++ b/src/media/video/sinkclient.cpp
@@ -305,11 +305,11 @@ SinkClient::stop() noexcept
 SinkClient::SinkClient(const std::string& id, bool mixer)
     : id_ {id}
     , mixer_(mixer)
+    , scaler_(new VideoScaler())
 #ifdef DEBUG_FPS
     , frameCount_(0u)
     , lastFrameDebug_(std::chrono::system_clock::now())
 #endif
-    , scaler_(new VideoScaler())
 {}
 
 void
diff --git a/src/media/video/v4l2/vdpau.cpp b/src/media/video/v4l2/vdpau.cpp
index 346bec31bf594c48be769e05bbacf20dd698abad..dbb5c21fe25b0d1aee7e9ba7dc375b06d4cc5cf6 100644
--- a/src/media/video/v4l2/vdpau.cpp
+++ b/src/media/video/v4l2/vdpau.cpp
@@ -55,6 +55,7 @@ VdpauAccel::~VdpauAccel()
 int
 VdpauAccel::allocateBuffer(AVFrame* frame, int flags)
 {
+    (void) flags;
     return av_hwframe_get_buffer(framesBufferRef_.get(), frame, 0);
 }
 
diff --git a/src/media/video/video_receive_thread.cpp b/src/media/video/video_receive_thread.cpp
index 5318c0b8fb2ae81d7e07c11849c3ac64d03d5c91..f9397beef142dda2beb95fe766cfb73e4465d483 100644
--- a/src/media/video/video_receive_thread.cpp
+++ b/src/media/video/video_receive_thread.cpp
@@ -46,11 +46,11 @@ VideoReceiveThread::VideoReceiveThread(const std::string& id,
     , dstHeight_(0)
     , id_(id)
     , stream_(sdp)
-    , mtu_(mtu)
     , sdpContext_(stream_.str().size(), false, &readFunction, 0, 0, this)
     , sink_ {Manager::instance().createSinkClient(id)}
     , restartDecoder_(false)
     , isReset_(isReset)
+    , mtu_(mtu)
     , requestKeyFrameCallback_(0)
     , loop_(std::bind(&VideoReceiveThread::setup, this),
             std::bind(&VideoReceiveThread::process, this),