From c598cf48432cf4655ab7fe812beb6a4f0688007c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Mon, 22 Jan 2018 14:34:18 -0500 Subject: [PATCH] fix various warnings Change-Id: I2794c1d374654870985a655a42ac647ff66c97a1 Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com> --- src/account.h | 2 +- src/im/message_engine.cpp | 2 +- src/media/media_encoder.h | 10 +++++----- src/media/video/video_base.h | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/account.h b/src/account.h index 31422570f3..b4a46f0f24 100644 --- a/src/account.h +++ b/src/account.h @@ -61,7 +61,7 @@ namespace ring { class Call; class SystemCodecContainer; -class IceTransportOptions; +struct IceTransportOptions; class VoipLinkException : public std::runtime_error { diff --git a/src/im/message_engine.cpp b/src/im/message_engine.cpp index 6c33d62407..db99504755 100644 --- a/src/im/message_engine.cpp +++ b/src/im/message_engine.cpp @@ -53,7 +53,7 @@ MessageEngine::sendMessage(const std::string& to, const std::map<std::string, st m.first->second.payloads = payloads; } save(); - runOnMainThread([this,token]() { + runOnMainThread([this]() { retrySend(); }); return token; diff --git a/src/media/media_encoder.h b/src/media/media_encoder.h index c8688c9223..6d65f107cd 100644 --- a/src/media/media_encoder.h +++ b/src/media/media_encoder.h @@ -37,11 +37,11 @@ #include <string> #include <vector> -class AVCodecContext; -class AVStream; -class AVFormatContext; -class AVDictionary; -class AVCodec; +struct AVCodecContext; +struct AVStream; +struct AVFormatContext; +struct AVDictionary; +struct AVCodec; namespace ring { diff --git a/src/media/video/video_base.h b/src/media/video/video_base.h index 22abb0cfc5..869921da6d 100644 --- a/src/media/video/video_base.h +++ b/src/media/video/video_base.h @@ -36,11 +36,11 @@ #include <mutex> #include <ciso646> // fix windows compiler bug -class AVPacket; -class AVDictionary; +struct AVPacket; +struct AVDictionary; #ifndef AVFORMAT_AVIO_H -class AVIOContext; +struct AVIOContext; #endif namespace ring { -- GitLab