(MESS) fixed clang 3.2 warnings about unused private fields (nw)

This commit is contained in:
Oliver Stöneberg 2013-03-20 00:31:11 +00:00
parent 66b17ada93
commit 03379e4ab6
42 changed files with 65 additions and 63 deletions

View File

@ -4,7 +4,7 @@
namespace DSP56K namespace DSP56K
{ {
Opcode::Opcode(UINT16 w0, UINT16 w1) : m_word0(w0), m_word1(w1) Opcode::Opcode(UINT16 w0, UINT16 w1) : m_word0(w0)/*, m_word1(w1)*/
{ {
m_instruction = Instruction::decodeInstruction(this, w0, w1); m_instruction = Instruction::decodeInstruction(this, w0, w1);
m_parallelMove = ParallelMove::decodeParallelMove(this, w0, w1); m_parallelMove = ParallelMove::decodeParallelMove(this, w0, w1);

View File

@ -36,7 +36,7 @@ private:
ParallelMove* m_parallelMove; ParallelMove* m_parallelMove;
UINT16 m_word0; UINT16 m_word0;
UINT16 m_word1; //UINT16 m_word1;
astring dcString() const; astring dcString() const;
}; };

View File

@ -82,7 +82,7 @@ private:
int deviceCount; int deviceCount;
int m_outputdata; int m_outputdata;
int m_inputdata; //int m_inputdata;
}; };
class psxsio0_device : public psxsio_device class psxsio0_device : public psxsio_device

View File

@ -110,8 +110,8 @@ bool path_iterator::next(astring &buffer, const char *name)
file_enumerator::file_enumerator(const char *searchpath) file_enumerator::file_enumerator(const char *searchpath)
: m_iterator(searchpath), : m_iterator(searchpath),
m_curdir(NULL), m_curdir(NULL)/*,
m_buflen(0) m_buflen(0)*/
{ {
} }

View File

@ -103,7 +103,7 @@ private:
path_iterator m_iterator; path_iterator m_iterator;
osd_directory * m_curdir; osd_directory * m_curdir;
astring m_pathbuffer; astring m_pathbuffer;
int m_buflen; //int m_buflen;
}; };

View File

@ -211,7 +211,7 @@ private:
emu_timer *m_tm; emu_timer *m_tm;
int m_scripts_state; int m_scripts_state;
int m_scripts_substate; //int m_scripts_substate;
void (ncr53c7xx_device::*m_scripts_op)(); void (ncr53c7xx_device::*m_scripts_op)();
// callbacks // callbacks

View File

@ -75,7 +75,7 @@ private:
s_pgm_t m_pgm; /* programming state */ s_pgm_t m_pgm; /* programming state */
bool m_enabling_sdb; /* set when a sdp enable command is in progress */ bool m_enabling_sdb; /* set when a sdp enable command is in progress */
bool m_disabling_sdb; /* set when a sdp disable command is in progress */ bool m_disabling_sdb; /* set when a sdp disable command is in progress */
bool m_dirty; /* set when the memory contents should be set */ //bool m_dirty; /* set when the memory contents should be set */
bool m_toggle_bit; // indicates flashing in progress (toggles for each query) bool m_toggle_bit; // indicates flashing in progress (toggles for each query)
UINT8* m_programming_buffer; UINT8* m_programming_buffer;
int m_programming_last_offset; int m_programming_last_offset;

View File

@ -165,7 +165,7 @@ private:
devcb_resolved_write_line m_out_tdo_func; devcb_resolved_write_line m_out_tdo_func;
devcb_resolved_write_line m_out_irq_func; devcb_resolved_write_line m_out_irq_func;
int m_device_type; /* device type */ //int m_device_type; /* device type */
/* registers */ /* registers */
UINT8 m_gpip; /* general purpose I/O register */ UINT8 m_gpip; /* general purpose I/O register */
@ -195,7 +195,7 @@ private:
int m_to[4]; /* timer out latch */ int m_to[4]; /* timer out latch */
/* interrupt state */ /* interrupt state */
int m_irqlevel; /* interrupt level latch */ //int m_irqlevel; /* interrupt level latch */
/* serial state */ /* serial state */
UINT8 m_next_rsr; /* receiver status register latch */ UINT8 m_next_rsr; /* receiver status register latch */

View File

@ -71,7 +71,7 @@ private:
static const int m_fifo_size = 16; static const int m_fifo_size = 16;
UINT8 m_fifo_ptr, m_fifo[m_fifo_size]; UINT8 m_fifo_ptr, m_fifo[m_fifo_size];
int m_xfer_remaining; // amount in the FIFO when we're in data in phase //int m_xfer_remaining; // amount in the FIFO when we're in data in phase
// read-only registers // read-only registers
UINT8 m_status, m_irq_status, m_internal_state, m_fifo_internal_state; UINT8 m_status, m_irq_status, m_internal_state, m_fifo_internal_state;

View File

@ -136,10 +136,10 @@ private:
devcb_resolved_write_line m_out_int_func; devcb_resolved_write_line m_out_int_func;
// timers // timers
emu_timer *m_rx_a_timer; //emu_timer *m_rx_a_timer;
emu_timer *m_tx_a_timer; //emu_timer *m_tx_a_timer;
emu_timer *m_rx_b_timer; //emu_timer *m_rx_b_timer;
emu_timer *m_tx_b_timer; //emu_timer *m_tx_b_timer;
}; };

View File

@ -67,7 +67,7 @@ private:
// internal state // internal state
sound_stream * m_stream; sound_stream * m_stream;
emu_timer * m_timer[2]; //emu_timer * m_timer[2];
void * m_chip; void * m_chip;
UINT8 m_lastreg; UINT8 m_lastreg;
devcb2_write_line m_irqhandler; devcb2_write_line m_irqhandler;

View File

@ -269,7 +269,7 @@ private:
cdp1869_char_ram_write_func m_out_char_ram_func; cdp1869_char_ram_write_func m_out_char_ram_func;
screen_device *m_screen; screen_device *m_screen;
address_space *m_page_ram; //address_space *m_page_ram;
emu_timer *m_prd_timer; emu_timer *m_prd_timer;
sound_stream *m_stream; sound_stream *m_stream;

View File

@ -207,8 +207,8 @@ public:
void reset(void); void reset(void);
void input_write(int sub_node, UINT8 data ); void input_write(int sub_node, UINT8 data );
private: private:
double m_gain; /* node gain */ //double m_gain; /* node gain */
double m_offset; /* node offset */ //double m_offset; /* node offset */
UINT8 m_data; /* data written */ UINT8 m_data; /* data written */
}; };

View File

@ -98,7 +98,7 @@ DISCRETE_CLASS_STEP_RESET(dsd_555_vco1, 1,
); );
DISCRETE_CLASS_STEP_RESET(dsd_566, 1, DISCRETE_CLASS_STEP_RESET(dsd_566, 1,
unsigned int m_state[2]; /* keeps track of excess flip_flop changes during the current step */ //unsigned int m_state[2]; /* keeps track of excess flip_flop changes during the current step */
int m_flip_flop; /* 566 flip/flop output state */ int m_flip_flop; /* 566 flip/flop output state */
double m_cap_voltage; /* voltage on cap */ double m_cap_voltage; /* voltage on cap */
double m_v_sqr_low; /* voltage for a squarewave at low */ double m_v_sqr_low; /* voltage for a squarewave at low */

View File

@ -48,7 +48,7 @@ DISCRETE_CLASS_STEP_RESET(dst_crfilter, 1,
double m_rc; double m_rc;
double m_exponent; double m_exponent;
UINT8 m_has_rc_nodes; UINT8 m_has_rc_nodes;
UINT8 m_is_fast; //UINT8 m_is_fast;
); );
DISCRETE_CLASS_STEP_RESET(dst_op_amp_filt, 1, DISCRETE_CLASS_STEP_RESET(dst_op_amp_filt, 1,
@ -164,7 +164,7 @@ DISCRETE_CLASS_STEP_RESET(dst_rcdiscN, 1,
double m_x1; /* x[k-1], previous input value */ double m_x1; /* x[k-1], previous input value */
double m_y1; /* y[k-1], previous output value */ double m_y1; /* y[k-1], previous output value */
double m_a1; /* digital filter coefficients, denominator */ double m_a1; /* digital filter coefficients, denominator */
double m_b[2]; /* digital filter coefficients, numerator */ //double m_b[2]; /* digital filter coefficients, numerator */
); );
DISCRETE_CLASS_STEP_RESET(dst_rcdisc2N, 1, DISCRETE_CLASS_STEP_RESET(dst_rcdisc2N, 1,

View File

@ -27,7 +27,7 @@ DISCRETE_CLASS_STEP_RESET(dss_counter, 1,
int m_is_7492; int m_is_7492;
int m_last_clock; int m_last_clock;
UINT32 m_last_count; UINT32 m_last_count;
UINT32 m_last; /* Last clock state */ //UINT32 m_last; /* Last clock state */
UINT32 m_min; UINT32 m_min;
UINT32 m_max; UINT32 m_max;
UINT32 m_diff; UINT32 m_diff;
@ -39,8 +39,8 @@ DISCRETE_CLASS_STEP_RESET(dss_lfsr_noise, 2,
int m_last; /* Last clock state */ int m_last; /* Last clock state */
double m_t_clock; /* fixed counter clock in seconds */ double m_t_clock; /* fixed counter clock in seconds */
double m_t_left; /* time unused during last sample in seconds */ double m_t_left; /* time unused during last sample in seconds */
double m_sample_step; //double m_sample_step;
double m_t; //double m_t;
UINT8 m_reset_on_high; UINT8 m_reset_on_high;
UINT8 m_invert_output; UINT8 m_invert_output;
UINT8 m_out_is_f0; UINT8 m_out_is_f0;
@ -184,7 +184,7 @@ DISCRETE_CLASS_STEP_RESET(dss_schmitt_osc, 1,
/* Not yet implemented */ /* Not yet implemented */
DISCRETE_CLASS_STEP_RESET(dss_adsrenv, 1, DISCRETE_CLASS_STEP_RESET(dss_adsrenv, 1,
double m_phase; //double m_phase;
); );

View File

@ -84,7 +84,7 @@ private:
device_image_interface *image; device_image_interface *image;
astring &current_directory, &current_file; astring &current_directory, &current_file;
const image_device_format *current_format; const image_device_format *current_format;
int confirm_save_as_yes; //int confirm_save_as_yes;
char filename_buffer[1024]; char filename_buffer[1024];
}; };

View File

@ -176,8 +176,8 @@ private:
int m_vlt; int m_vlt;
int m_drb; int m_drb;
int m_wben; int m_wben;
int m_slg; //int m_slg;
int m_sld; //int m_sld;
int m_lpstb; int m_lpstb;
// DMA // DMA

View File

@ -96,7 +96,7 @@ private:
screen_device *m_screen; screen_device *m_screen;
emu_timer *m_busy_timer; emu_timer *m_busy_timer;
address_space *m_data; //address_space *m_data;
bool m_bf; // busy flag bool m_bf; // busy flag

View File

@ -341,9 +341,9 @@ private:
vga_device* m_vga; // for pass-through vga_device* m_vga; // for pass-through
astring m_vga_tag; // pass-through device tag astring m_vga_tag; // pass-through device tag
UINT8* m_vram; // the original 8514/A has it's own VRAM, but most VGA+8514 combination cards will have //UINT8* m_vram; // the original 8514/A has it's own VRAM, but most VGA+8514 combination cards will have
// only one set of VRAM, so this will only be needed in standalone 8514/A cards // only one set of VRAM, so this will only be needed in standalone 8514/A cards
UINT32 m_vramsize; //UINT32 m_vramsize;
}; };
// device type definition // device type definition

View File

@ -118,7 +118,7 @@ private:
int m_ov; // graphics mode layer composition int m_ov; // graphics mode layer composition
// devices // devices
screen_device *m_screen; //screen_device *m_screen;
// address space configurations // address space configurations
const address_space_config m_space_config; const address_space_config m_space_config;

View File

@ -273,7 +273,7 @@ public:
int m_ready_line, m_ready_line1; int m_ready_line, m_ready_line1;
private: private:
int m_joystick_select; //int m_joystick_select;
// Some values to keep. Rest is on the geneve_mapper. // Some values to keep. Rest is on the geneve_mapper.
}; };

View File

@ -272,7 +272,7 @@ private:
/* Keyboard support */ /* Keyboard support */
void set_keyboard_column(int number, int data); void set_keyboard_column(int number, int data);
int m_keyboard_column; int m_keyboard_column;
int m_alphalock_line; //int m_alphalock_line;
}; };
/* /*

View File

@ -167,8 +167,10 @@ private:
void putchar(UINT8 data); void putchar(UINT8 data);
private: private:
apollo_kbd_device *m_device; // pointer back to our device apollo_kbd_device *m_device; // pointer back to our device
#if defined(KBD_TTY_NAME)
const char *m_tty_name; const char *m_tty_name;
int m_tty_fd; /* File descriptor of keyboard tty */ int m_tty_fd; /* File descriptor of keyboard tty */
#endif
int m_connected; int m_connected;
}; };

View File

@ -45,7 +45,7 @@ protected:
virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2); virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2);
private: private:
UINT8 m_bank; //UINT8 m_bank;
}; };

View File

@ -77,7 +77,7 @@ protected:
virtual void device_config_complete() { m_shortname = "cpc_rom"; } virtual void device_config_complete() { m_shortname = "cpc_rom"; }
private: private:
cpc_expansion_slot_device *m_slot; //cpc_expansion_slot_device *m_slot;
rom_image_device* m_rom[6]; rom_image_device* m_rom[6];
}; };

View File

@ -61,10 +61,10 @@ protected:
private: private:
// internal state // internal state
address_space *m_space; //address_space *m_space;
UINT8 *m_isa; //UINT8 *m_isa;
UINT8 *m_bios; //UINT8 *m_bios;
UINT8 *m_ram; //UINT8 *m_ram;
// address selection // address selection
UINT8 m_address; UINT8 m_address;

View File

@ -80,7 +80,7 @@ private:
scsihle_device* m_SCSIdevices[8]; scsihle_device* m_SCSIdevices[8];
UINT8 m_command[32]; UINT8 m_command[32];
UINT8 m_result[32]; //UINT8 m_result[32];
UINT8 m_command_index; UINT8 m_command_index;
int m_result_length; int m_result_length;
UINT32 m_result_index; UINT32 m_result_index;

View File

@ -190,9 +190,9 @@ private:
UINT8 m_current_voice; UINT8 m_current_voice;
UINT8 m_current_reg; UINT8 m_current_reg;
UINT8 m_port; //UINT8 m_port;
UINT8 m_irq; //UINT8 m_irq;
UINT8 m_dma; //UINT8 m_dma;
UINT8 m_adlib_cmd; UINT8 m_adlib_cmd;
UINT8 m_mix_ctrl; UINT8 m_mix_ctrl;

View File

@ -77,7 +77,7 @@ private:
UINT8 m_ram[0x800]; UINT8 m_ram[0x800];
UINT8 m_hdc_addr; //UINT8 m_hdc_addr;
}; };

View File

@ -73,7 +73,7 @@ private:
UINT16 m_rom_base; UINT16 m_rom_base;
UINT8 m_enabled; UINT8 m_enabled;
UINT8 m_connected; UINT8 m_connected;
UINT8 m_active_fdd; //UINT8 m_active_fdd;
floppy_image_device *m_floppy; floppy_image_device *m_floppy;
}; };

View File

@ -27,7 +27,7 @@ protected:
virtual void device_reset() { } virtual void device_reset() { }
virtual void device_config_complete() { m_shortname = "midiout_port"; } virtual void device_config_complete() { m_shortname = "midiout_port"; }
private: private:
serial_port_device *m_owner; //serial_port_device *m_owner;
required_device<midiout_device> m_midiout; required_device<midiout_device> m_midiout;
}; };

View File

@ -190,7 +190,7 @@ private:
UINT8 clock_conv, sync_offset, sync_period, bus_id, select_timeout, seq; UINT8 clock_conv, sync_offset, sync_period, bus_id, select_timeout, seq;
UINT16 tcount; UINT16 tcount;
int mode; int mode;
int state, xfr_phase; int state/*, xfr_phase*/;
bool irq, drq; bool irq, drq;

View File

@ -158,7 +158,7 @@ public:
DECLARE_READ8_MEMBER( read ); DECLARE_READ8_MEMBER( read );
private: private:
emu_timer *m_timer; //emu_timer *m_timer;
UINT32 m_sysclock; UINT32 m_sysclock;
const char *m_devname; const char *m_devname;
cdrom_image_device *m_cddevice; cdrom_image_device *m_cddevice;

View File

@ -317,7 +317,7 @@ class mess_cdrom_driver : public cdrom_driver
int num_sectors, num_tracks; int num_sectors, num_tracks;
toc_entry toc[100]; toc_entry toc[100];
int bin_sector_size; int bin_sector_size;
const char *err; //const char *err;
io_status *read_sectors(const unsigned int startsec, const unsigned int numsec, unsigned char *buf); io_status *read_sectors(const unsigned int startsec, const unsigned int numsec, unsigned char *buf);
@ -340,7 +340,7 @@ public:
}; };
mess_cdrom_driver::mess_cdrom_driver() mess_cdrom_driver::mess_cdrom_driver()
: err(NULL) //: err(NULL)
{ {
for (int i=0; i<100; i++) for (int i=0; i<100; i++)
toc[i].type=track_illegal; toc[i].type=track_illegal;

View File

@ -63,7 +63,7 @@ public:
private: private:
running_machine& m_machine; running_machine& m_machine;
UINT32 m_rom_size; //UINT32 m_rom_size;
}; };
// ======================> sns_rom_spc7110_device // ======================> sns_rom_spc7110_device

View File

@ -1994,8 +1994,8 @@ DTD:
Constructor. Constructor.
*/ */
rpk::rpk(emu_options& options, const char* sysname) rpk::rpk(emu_options& options, const char* sysname)
:m_options(options), :m_options(options)
m_system_name(sysname) //,m_system_name(sysname)
{ {
m_sockets.reset(); m_sockets.reset();
}; };

View File

@ -437,7 +437,7 @@ public:
private: private:
emu_options& m_options; // need this to find the path to the nvram files emu_options& m_options; // need this to find the path to the nvram files
int m_type; int m_type;
const char* m_system_name; // need this to find the path to the nvram files //const char* m_system_name; // need this to find the path to the nvram files
tagged_list<rpk_socket> m_sockets; tagged_list<rpk_socket> m_sockets;
void add_socket(const char* id, rpk_socket *newsock); void add_socket(const char* id, rpk_socket *newsock);

View File

@ -61,7 +61,7 @@ private:
required_device<via6522_device> m_via1; required_device<via6522_device> m_via1;
required_device<ieee488_device> m_bus; required_device<ieee488_device> m_bus;
UINT8 *m_rom; //UINT8 *m_rom;
int m_via0_irq; int m_via0_irq;
int m_via1_irq; int m_via1_irq;

View File

@ -106,7 +106,7 @@ private:
int m_phase; int m_phase;
unsigned char m_status_port; // read at 0xe96003 unsigned char m_status_port; // read at 0xe96003
unsigned char m_status; // status phase output unsigned char m_status; // status phase output
unsigned char m_message; //unsigned char m_message;
unsigned char m_command[10]; unsigned char m_command[10];
unsigned char m_sense[4]; unsigned char m_sense[4];
int m_command_byte_count; int m_command_byte_count;

View File

@ -46,10 +46,10 @@ public:
emu_timer *m_timer; emu_timer *m_timer;
private: private:
UINT32 m_7xxxxx_regs[0x100000/4]; //UINT32 m_7xxxxx_regs[0x100000/4];
int m_width, m_height, m_patofsx, m_patofsy; //int m_width, m_height, m_patofsx, m_patofsy;
UINT32 m_vram_addr, m_vram_src; //UINT32 m_vram_addr, m_vram_src;
UINT8 m_fillbytes[256]; //UINT8 m_fillbytes[256];
bool m_vbl_pending; bool m_vbl_pending;
int m_parameter; int m_parameter;
}; };

View File

@ -116,7 +116,7 @@ private:
cpu_device *m_cpu; cpu_device *m_cpu;
screen_device *m_screen; screen_device *m_screen;
address_space *m_data; //address_space *m_data;
int m_dispoff; // display off int m_dispoff; // display off
int m_mode8; // mode8 active int m_mode8; // mode8 active