Linux: Fixed warnings with newer version of clang

This commit is contained in:
Sour 2018-06-11 19:07:05 -04:00
parent 37b7b2c292
commit ebd6ff72ba
14 changed files with 21 additions and 8 deletions

View file

@ -72,6 +72,10 @@ public:
_useIntegerScaling = useIntegerScaling;
}
virtual ~DrawCommand()
{
}
void Draw(uint32_t* argbBuffer, OverscanDimensions &overscan, uint32_t lineWidth, uint32_t frameNumber)
{
if(_startFrame <= frameNumber) {

View file

@ -24,7 +24,7 @@ private:
public:
GameClient();
~GameClient();
virtual ~GameClient();
static bool Connected();
static void Connect(shared_ptr<ClientConnectionData> connectionData);

View file

@ -41,7 +41,7 @@ protected:
public:
GameClientConnection(shared_ptr<Socket> socket, shared_ptr<ClientConnectionData> connectionData);
~GameClientConnection();
virtual ~GameClientConnection();
void Shutdown();

View file

@ -31,7 +31,7 @@ private:
public:
GameServer(uint16_t port, string hostPlayerName);
~GameServer();
virtual ~GameServer();
static void StartServer(uint16_t port, string hostPlayerName);
static void StopServer();

View file

@ -35,7 +35,7 @@ protected:
public:
GameServerConnection(shared_ptr<Socket> socket);
~GameServerConnection();
virtual ~GameServerConnection();
ControlDeviceState GetState();
void SendMovieData(uint8_t port, ControlDeviceState state);

View file

@ -146,6 +146,8 @@ struct HdPackCondition
virtual bool IsExcludedFromFile() { return false; }
virtual string ToString() = 0;
virtual ~HdPackCondition() { }
void ClearCache()
{
_resultCache = -1;

View file

@ -50,4 +50,6 @@ public:
virtual void GetMemoryRanges(MemoryRanges &ranges) = 0;
virtual uint8_t ReadRAM(uint16_t addr) = 0;
virtual void WriteRAM(uint16_t addr, uint8_t value) = 0;
virtual ~IMemoryHandler() {}
};

View file

@ -16,7 +16,7 @@ protected:
public:
LuaScriptingContext();
~LuaScriptingContext();
virtual ~LuaScriptingContext();
bool LoadScript(string scriptName, string scriptContent, Debugger* debugger) override;

View file

@ -35,7 +35,7 @@ private:
public:
MesenMovie();
~MesenMovie();
virtual ~MesenMovie();
bool Play(VirtualFile &file) override;
bool SetInput(BaseControlDevice* device) override;

View file

@ -29,7 +29,7 @@ private:
public:
MovieRecorder();
~MovieRecorder();
virtual ~MovieRecorder();
bool Record(RecordMovieOptions options);
bool Stop();

View file

@ -46,7 +46,7 @@ private:
public:
RewindManager();
~RewindManager();
virtual ~RewindManager();
void ProcessNotification(ConsoleNotificationType type, void* parameter) override;
void ProcessEndOfFrame();

View file

@ -42,6 +42,7 @@ protected:
virtual int InternalCallEventCallback(EventType type) = 0;
public:
virtual ~ScriptingContext() {}
virtual bool LoadScript(string scriptName, string scriptContent, Debugger* debugger) = 0;
void Log(string message);

View file

@ -228,6 +228,8 @@ protected:
}
public:
virtual ~Snapshotable() {}
void SaveSnapshot(ostream* file);
void LoadSnapshot(istream* file, uint32_t stateVersion);

View file

@ -7,4 +7,6 @@ public:
virtual bool SetupCompress(int width, int height, uint32_t compressionLevel) = 0;
virtual int CompressFrame(bool isKeyFrame, uint8_t *frameData, uint8_t** compressedData) = 0;
virtual const char* GetFourCC() = 0;
virtual ~BaseCodec() { }
};