PDP10, ETHER, VIDEO, VAX: Fix set but unused variables.

This commit is contained in:
Lars Brinkhoff 2020-11-25 04:50:47 -08:00 committed by Mark Pizzolato
parent 86889c662c
commit 970fb8ec95
5 changed files with 4 additions and 10 deletions

View file

@ -1192,8 +1192,6 @@ return sim_disk_detach (uptr);
t_stat rp_set_type (UNIT *uptr, int32 val, CONST char *cptr, void *desc) t_stat rp_set_type (UNIT *uptr, int32 val, CONST char *cptr, void *desc)
{ {
int32 dtype = GET_DTYPE (val);
if ((val < 0) || (cptr && *cptr)) if ((val < 0) || (cptr && *cptr))
return SCPE_ARG; return SCPE_ARG;
if (uptr->flags & UNIT_ATT) if (uptr->flags & UNIT_ATT)

View file

@ -329,7 +329,6 @@ int32 rz_rd (int32 pa)
int32 ctlr = (pa >> 8) & 1; int32 ctlr = (pa >> 8) & 1;
CTLR *rz = rz_ctxmap[ctlr]; CTLR *rz = rz_ctxmap[ctlr];
DEVICE *dptr = rz_devmap[ctlr]; DEVICE *dptr = rz_devmap[ctlr];
UNIT *uptr = dptr->units + RZ_CTLR;
int32 rg = (pa >> 2) & 0x1F; int32 rg = (pa >> 2) & 0x1F;
int32 data = 0; int32 data = 0;
int32 len; int32 len;

View file

@ -188,8 +188,6 @@ void va_erase (uint32 x0, uint32 x1, uint32 y0, uint32 y1);
void va_adpstat (uint32 set, uint32 clr) void va_adpstat (uint32 set, uint32 clr)
{ {
uint32 chg = (va_adp[ADP_STAT] ^ set) & set;
if (va_adp[ADP_INT] & set) /* unmasked ints 0->1? */ if (va_adp[ADP_INT] & set) /* unmasked ints 0->1? */
va_setint (INT_ADP); va_setint (INT_ADP);
va_adp[ADP_STAT] = va_adp[ADP_STAT] | set; va_adp[ADP_STAT] = va_adp[ADP_STAT] | set;

View file

@ -751,12 +751,12 @@ void eth_zero(ETH_DEV* dev)
dev->reflections = -1; /* not established yet */ dev->reflections = -1; /* not established yet */
} }
static char* (*p_pcap_lib_version) (void);
static ETH_DEV **eth_open_devices = NULL; static ETH_DEV **eth_open_devices = NULL;
static int eth_open_device_count = 0; static int eth_open_device_count = 0;
#if defined (USE_NETWORK) || defined (USE_SHARED) #if defined (USE_NETWORK) || defined (USE_SHARED)
static char* (*p_pcap_lib_version) (void);
static void _eth_add_to_open_list (ETH_DEV* dev) static void _eth_add_to_open_list (ETH_DEV* dev)
{ {
eth_open_devices = (ETH_DEV**)realloc(eth_open_devices, (eth_open_device_count+1)*sizeof(*eth_open_devices)); eth_open_devices = (ETH_DEV**)realloc(eth_open_devices, (eth_open_device_count+1)*sizeof(*eth_open_devices));

View file

@ -40,7 +40,6 @@ static VID_QUIT_CALLBACK vid_quit_callback = NULL;
static VID_GAMEPAD_CALLBACK motion_callback[10]; static VID_GAMEPAD_CALLBACK motion_callback[10];
static VID_GAMEPAD_CALLBACK button_callback[10]; static VID_GAMEPAD_CALLBACK button_callback[10];
static int vid_gamepad_inited = 0; static int vid_gamepad_inited = 0;
static int vid_gamepad_ok = 0; /* Or else just joysticks. */
t_stat vid_register_quit_callback (VID_QUIT_CALLBACK callback) t_stat vid_register_quit_callback (VID_QUIT_CALLBACK callback)
{ {
@ -95,6 +94,8 @@ return dev ? sim_dname(dev) : "Video Device";
#if defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL) #if defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL)
static int vid_gamepad_ok = 0; /* Or else just joysticks. */
char vid_release_key[64] = "Ctrl-Right-Shift"; char vid_release_key[64] = "Ctrl-Right-Shift";
#include <SDL.h> #include <SDL.h>
@ -610,7 +611,6 @@ if (0 == (--vid_gamepad_inited)) {
static t_stat vid_init_window (VID_DISPLAY *vptr, DEVICE *dptr, const char *title, uint32 width, uint32 height, int flags) static t_stat vid_init_window (VID_DISPLAY *vptr, DEVICE *dptr, const char *title, uint32 width, uint32 height, int flags)
{ {
int wait_count = 0;
t_stat stat; t_stat stat;
if ((strlen(sim_name) + 7 + (dptr ? strlen (dptr->name) : 0) + (title ? strlen (title) : 0)) < sizeof (vptr->vid_title)) if ((strlen(sim_name) + 7 + (dptr ? strlen (dptr->name) : 0) + (title ? strlen (title) : 0)) < sizeof (vptr->vid_title))
@ -2446,7 +2446,6 @@ static int vid_beep_samples;
static void vid_audio_callback(void *ctx, Uint8 *stream, int length) static void vid_audio_callback(void *ctx, Uint8 *stream, int length)
{ {
int16 *data = (int16 *)stream;
int i, sum, remnant = ((vid_beep_samples - vid_beep_offset) * sizeof (*vid_beep_data)); int i, sum, remnant = ((vid_beep_samples - vid_beep_offset) * sizeof (*vid_beep_data));
if (length > remnant) { if (length > remnant) {