mirror of https://github.com/stella-emu/stella.git
Fix warnings detected by clang.
This commit is contained in:
parent
e3bf1ffbd5
commit
51b27340fd
|
@ -25,6 +25,7 @@
|
||||||
@author Bradford W. Mott and Stephen Anthony
|
@author Bradford W. Mott and Stephen Anthony
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <climits>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
// Types for 8/16/32/64-bit signed and unsigned integers
|
// Types for 8/16/32/64-bit signed and unsigned integers
|
||||||
using Int8 = int8_t;
|
using Int8 = int8_t;
|
||||||
|
|
|
@ -25,8 +25,8 @@ KidVid::KidVid(Jack jack, const Event& event, const System& system,
|
||||||
const string& rommd5)
|
const string& rommd5)
|
||||||
: Controller(jack, event, system, Controller::KidVid),
|
: Controller(jack, event, system, Controller::KidVid),
|
||||||
myEnabled(myJack == Right),
|
myEnabled(myJack == Right),
|
||||||
mySampleFile(nullptr),
|
// mySampleFile(nullptr),
|
||||||
mySharedSampleFile(nullptr),
|
// mySharedSampleFile(nullptr),
|
||||||
myFileOpened(false),
|
myFileOpened(false),
|
||||||
myTapeBusy(false),
|
myTapeBusy(false),
|
||||||
myFilePointer(0),
|
myFilePointer(0),
|
||||||
|
|
|
@ -83,7 +83,7 @@ class KidVid : public Controller
|
||||||
bool myEnabled;
|
bool myEnabled;
|
||||||
|
|
||||||
// The file handles for the WAV files
|
// The file handles for the WAV files
|
||||||
FILE *mySampleFile, *mySharedSampleFile;
|
// FILE *mySampleFile, *mySharedSampleFile;
|
||||||
|
|
||||||
// Indicates if sample files have been successfully opened
|
// Indicates if sample files have been successfully opened
|
||||||
bool myFileOpened;
|
bool myFileOpened;
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <climits>
|
|
||||||
|
|
||||||
#include "Control.hxx"
|
#include "Control.hxx"
|
||||||
#include "Event.hxx"
|
#include "Event.hxx"
|
||||||
#include "System.hxx"
|
#include "System.hxx"
|
||||||
|
|
|
@ -132,7 +132,6 @@ GlobalPropsDialog::GlobalPropsDialog(GuiObject* boss, const GUI::Font& font)
|
||||||
int GlobalPropsDialog::addHoldWidgets(const GUI::Font& font, int x, int y,
|
int GlobalPropsDialog::addHoldWidgets(const GUI::Font& font, int x, int y,
|
||||||
WidgetArray& wid)
|
WidgetArray& wid)
|
||||||
{
|
{
|
||||||
const int fontHeight = font.getFontHeight();
|
|
||||||
int xpos = x, ypos = y;
|
int xpos = x, ypos = y;
|
||||||
const int VGAP = 4;
|
const int VGAP = 4;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue