Fix a few minor but distracting build warnings.

This commit is contained in:
Peter 2013-04-07 18:35:53 +00:00
parent e8c512a898
commit 72cee13526
4 changed files with 7 additions and 6 deletions

View File

@ -231,7 +231,7 @@ IWM_WRITE_ROUT (Disk *dsk, word32 val, int fast_disk_emul, double dcycs)
word32 prev_val;
double dcycs_this_nib;
double dcycs_passed;
int sdiff;
double sdiff;
int prev_bits;
if((!dsk->file) || dsk->trks == 0) {

View File

@ -32,7 +32,7 @@ parallel port, files, and additional types of emulated printers.
extern int g_parallel_out_masking;
extern word32 g_vbl_count;
extern int g_printer_timeout;
int printer_vbl_count = 0;
word32 printer_vbl_count = 0;
int port_block = 0;
byte parallel_read(word16 io_address)

View File

@ -32,10 +32,12 @@
#define vsnprintf _vsnprintf
#endif
#if defined (_WIN32) || defined(__CYGWIN__)
#if defined(__CYGWIN__)
#define WIN32_LEAN_AND_MEAN /* Tell windows we want less header gunk */
#define STRICT /* Tell Windows we want compile type checks */
#include <windows.h> /* Need a definition for LPTSTR in CYGWIN */
#endif
#if defined (_WIN32) || defined(__CYGWIN__)
extern void get_cwd(LPTSTR buffer, int size);
#endif
@ -910,7 +912,6 @@ gsportmain(int argc, char **argv)
int tmp1;
int i;
char *final_arg = 0;
char *filename_ptr;
// OG Restoring globals
sim65816_initglobals();
@ -1070,7 +1071,7 @@ gsportmain(int argc, char **argv)
// ...and flag it to boot
cfg_inspect_maybe_insert_file(final_arg, 1);
}
printer_init(g_printer_dpi,85,110,g_printer_output,g_printer_multipage);
printer_init(g_printer_dpi,85,110,g_printer_output,g_printer_multipage != 0);
//If ethernet is enabled in config.gsport, let's initialize it
#ifdef HAVE_TFE
if (g_ethernet == 1)

View File

@ -451,7 +451,7 @@ win_event_redraw()
LRESULT CALLBACK
win_event_handler(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
{
int i, j;
int i;
int numDraggedFiles;
int szFilename;
LPTSTR lpszFile;