diff options
| author | 2012-04-22 05:18:20 +0000 | |
|---|---|---|
| committer | 2012-04-22 05:18:20 +0000 | |
| commit | a0a0ffd5fe5adfc219e62e17c6d5f2f7d034655e (patch) | |
| tree | 6c10e06a5622af5a28839fb336106107d16ac12d /src | |
| parent | f3de08a9f84746a23d0fb784cf2ab36913764035 (diff) | |
Only print mismatched width warnings for required pointers.
Gets rid of spurious messages in tons of drivers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emu/device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/device.c b/src/emu/device.c index b6238cd2369..150c4dea58c 100644 --- a/src/emu/device.c +++ b/src/emu/device.c @@ -924,7 +924,8 @@ void *device_t::finder_base::find_memory(UINT8 width, size_t &bytes, bool requir // check the width and warn if not correct if (width != 0 && share->width() != width) { - mame_printf_warning("Shared ptr '%s' found but is width %d, not %d as requested\n", m_tag, share->width(), width); + if (required) + mame_printf_warning("Shared ptr '%s' found but is width %d, not %d as requested\n", m_tag, share->width(), width); return NULL; } |
