diff --git a/src/devices/cpu/m68hc16/cpu16.h b/src/devices/cpu/m68hc16/cpu16.h index e29187b237c..bb8c47bbd1c 100644 --- a/src/devices/cpu/m68hc16/cpu16.h +++ b/src/devices/cpu/m68hc16/cpu16.h @@ -121,8 +121,4 @@ private: s32 m_icount; }; -// device type declaration -DECLARE_DEVICE_TYPE(MC68HC16Z1, mc68hc16z1_device) - - #endif // MAME_CPU_M68HC16_CPU16_H diff --git a/src/frontend/mame/ui/icorender.cpp b/src/frontend/mame/ui/icorender.cpp index 363e64bad8b..63d3bb4b72a 100644 --- a/src/frontend/mame/ui/icorender.cpp +++ b/src/frontend/mame/ui/icorender.cpp @@ -179,7 +179,7 @@ bool load_ico_image(util::core_file &fp, unsigned count, unsigned index, bitmap_ { // read the directory entry std::error_condition err; - size_t actual; + size_t actual = 0; icon_dir_entry_t dir; err = fp.seek(sizeof(icon_dir_t) + (sizeof(icon_dir_entry_t) * index), SEEK_SET); if (!err) @@ -212,8 +212,8 @@ int images_in_ico(util::core_file &fp) { // read and check the icon file header std::error_condition err; - size_t actual; - icon_dir_t header; + size_t actual = 0; + icon_dir_t header = { }; err = fp.seek(0, SEEK_SET); if (!err) err = fp.read(&header, sizeof(header), actual);