fix some warnings on older GCCs (e.g. OSX PPC) (nw)

This commit is contained in:
R. Belmont 2014-05-04 17:40:21 +00:00
parent cd32bc2f2a
commit 533028e3bd
2 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,7 @@ March 2013 NPW:
//**************************************************************************
// turn off 'unreferenced label' errors
#ifdef __GNUC__
#if defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
#pragma GCC diagnostic ignored "-Wunused-label"
#endif
#ifdef _MSC_VER

View File

@ -136,6 +136,8 @@ enum
class psxcpu_state
{
public:
virtual ~psxcpu_state() {};
virtual UINT32 pc() = 0;
virtual UINT32 delayr() = 0;
virtual UINT32 delayv() = 0;
@ -150,6 +152,7 @@ class psxcpu_device : public cpu_device,
public:
// construction/destruction
psxcpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual ~psxcpu_device() {};
// static configuration helpers
template<class _Object> static devcb2_base &set_gpu_read_handler(device_t &device, _Object object) { return downcast<psxcpu_device &>(device).m_gpu_read_handler.set_callback(object); }