Fix minor compile warnings.

This commit is contained in:
Stephen Anthony 2022-07-13 11:32:27 -02:30
parent 1a8971e6d1
commit 5ad9c0e5ce
4 changed files with 14 additions and 2 deletions

View File

@ -74,6 +74,15 @@ void checkForCustomBaseDir(Settings::Options& options);
*/ */
bool isProfilingRun(int ac, char* av[]); bool isProfilingRun(int ac, char* av[]);
/**
In Windows, attach console to allow command line output (e.g. for -help).
This is needed since by default Windows doesn't set up stdout/stderr
correctly.
*/
void attachConsole();
void freeConsole();
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void parseCommandLine(int ac, char* av[], void parseCommandLine(int ac, char* av[],
Settings::Options& globalOpts, Settings::Options& localOpts) Settings::Options& globalOpts, Settings::Options& localOpts)

View File

@ -157,6 +157,9 @@ bool ProfilingRunner::runOne(const ProfilingRun& run)
cout << "PAL"; cout << "PAL";
consoleTiming = ConsoleTiming::pal; consoleTiming = ConsoleTiming::pal;
break; break;
default: // TODO: add other layouts here
break;
} }
(cout << endl).flush(); (cout << endl).flush();

View File

@ -72,7 +72,7 @@ class AbstractFrameManager : public Serializable
/** /**
* Called when a pixel is rendered. * Called when a pixel is rendered.
*/ */
virtual void pixelColor(uInt8 color) {}; virtual void pixelColor(uInt8 color) {}
/** /**
* Should the TIA render its frame? This is buffered in a flag for * Should the TIA render its frame? This is buffered in a flag for

View File

@ -46,7 +46,7 @@ class FrameLayoutDetector: public AbstractFrameManager
/** /**
* Simulate some input to pass a potential title screen. * Simulate some input to pass a potential title screen.
*/ */
void FrameLayoutDetector::simulateInput(M6532& riot, EventHandler& eventHandler, bool pressed) const; void simulateInput(M6532& riot, EventHandler& eventHandler, bool pressed) const;
protected: protected: