Silence clang warnings.

This commit is contained in:
Christian Speckner 2017-10-15 21:03:33 +02:00
parent be877f8503
commit 14dde10b34
4 changed files with 5 additions and 5 deletions

View File

@ -12,4 +12,4 @@ namespace TIAConstants {
}
#endif // TIA_CONSTANTS_HXX
#endif // TIA_CONSTANTS_HXX

View File

@ -107,7 +107,7 @@ class AbstractFrameManager : public Serializable
/**
* The configured (our autodetected) frame layout (PAL / NTSC).
*/
FrameLayout layout() const { return myLayout; };
FrameLayout layout() const { return myLayout; }
/**
* The current frame rate. This is calculated dynamically from the number of
@ -144,7 +144,7 @@ class AbstractFrameManager : public Serializable
/**
* Enable jitter simulation
*/
virtual void enableJitter(bool enabled) {};
virtual void enableJitter(bool enabled) {}
/**
* The scanline difference between the last two frames. Used in the TIA to

View File

@ -36,7 +36,7 @@ class FrameManager: public AbstractFrameManager {
void enableJitter(bool enabled) override { myJitterEnabled = enabled; }
uInt32 height() const override { return myHeight; };
uInt32 height() const override { return myHeight; }
void setFixedHeight(uInt32 height) override;

View File

@ -63,7 +63,7 @@ void JitterEmulation::frameComplete(uInt32 scanlineCount)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void JitterEmulation::updateJitter(Int32 scanlineDifference)
{
if ((uInt32)abs(scanlineDifference) < Metrics::minDeltaForJitter) return;
if (uInt32(abs(scanlineDifference)) < Metrics::minDeltaForJitter) return;
Int32 jitter = std::min<Int32>(jitter, Metrics::maxJitter);
jitter = std::max<Int32>(jitter, -myYStart);