Fix warnings detected by clang.

This commit is contained in:
Stephen Anthony 2018-08-19 16:27:59 -02:30
parent e3bf1ffbd5
commit 51b27340fd
5 changed files with 4 additions and 6 deletions

View File

@ -25,6 +25,7 @@
@author Bradford W. Mott and Stephen Anthony
*/
#include <climits>
#include <cstdint>
// Types for 8/16/32/64-bit signed and unsigned integers
using Int8 = int8_t;

View File

@ -25,8 +25,8 @@ KidVid::KidVid(Jack jack, const Event& event, const System& system,
const string& rommd5)
: Controller(jack, event, system, Controller::KidVid),
myEnabled(myJack == Right),
mySampleFile(nullptr),
mySharedSampleFile(nullptr),
// mySampleFile(nullptr),
// mySharedSampleFile(nullptr),
myFileOpened(false),
myTapeBusy(false),
myFilePointer(0),

View File

@ -83,7 +83,7 @@ class KidVid : public Controller
bool myEnabled;
// The file handles for the WAV files
FILE *mySampleFile, *mySharedSampleFile;
// FILE *mySampleFile, *mySharedSampleFile;
// Indicates if sample files have been successfully opened
bool myFileOpened;

View File

@ -15,8 +15,6 @@
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//============================================================================
#include <climits>
#include "Control.hxx"
#include "Event.hxx"
#include "System.hxx"

View File

@ -132,7 +132,6 @@ GlobalPropsDialog::GlobalPropsDialog(GuiObject* boss, const GUI::Font& font)
int GlobalPropsDialog::addHoldWidgets(const GUI::Font& font, int x, int y,
WidgetArray& wid)
{
const int fontHeight = font.getFontHeight();
int xpos = x, ypos = y;
const int VGAP = 4;