Linux: Fixed warnings with newer version of clang
This commit is contained in:
parent
37b7b2c292
commit
ebd6ff72ba
14 changed files with 21 additions and 8 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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() {}
|
||||||
};
|
};
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -29,7 +29,7 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MovieRecorder();
|
MovieRecorder();
|
||||||
~MovieRecorder();
|
virtual ~MovieRecorder();
|
||||||
|
|
||||||
bool Record(RecordMovieOptions options);
|
bool Record(RecordMovieOptions options);
|
||||||
bool Stop();
|
bool Stop();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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() { }
|
||||||
};
|
};
|
Loading…
Add table
Reference in a new issue