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; _useIntegerScaling = useIntegerScaling;
} }
virtual ~DrawCommand()
{
}
void Draw(uint32_t* argbBuffer, OverscanDimensions &overscan, uint32_t lineWidth, uint32_t frameNumber) void Draw(uint32_t* argbBuffer, OverscanDimensions &overscan, uint32_t lineWidth, uint32_t frameNumber)
{ {
if(_startFrame <= frameNumber) { if(_startFrame <= frameNumber) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -228,6 +228,8 @@ protected:
} }
public: public:
virtual ~Snapshotable() {}
void SaveSnapshot(ostream* file); void SaveSnapshot(ostream* file);
void LoadSnapshot(istream* file, uint32_t stateVersion); 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 bool SetupCompress(int width, int height, uint32_t compressionLevel) = 0;
virtual int CompressFrame(bool isKeyFrame, uint8_t *frameData, uint8_t** compressedData) = 0; virtual int CompressFrame(bool isKeyFrame, uint8_t *frameData, uint8_t** compressedData) = 0;
virtual const char* GetFourCC() = 0; virtual const char* GetFourCC() = 0;
virtual ~BaseCodec() { }
}; };