Fix clang warnings about declaring template instantiation extern after the instantiation itself.

This commit is contained in:
Vas Crabb 2021-09-15 01:26:08 +10:00
parent aee1915d2c
commit 1aedbd0fbf
3 changed files with 17 additions and 9 deletions

View File

@ -10,9 +10,6 @@
DEFINE_DEVICE_TYPE(INTELLEC4_UNIV_SLOT, bus::intellec4::univ_slot_device, "intlc4univslot", "INTELLEC 4 Universal Slot")
DEFINE_DEVICE_TYPE(INTELLEC4_UNIV_BUS, bus::intellec4::univ_bus_device, "intlc4univbus", "INTELLEC 4 Universal Bus")
template class device_finder<bus::intellec4::device_univ_card_interface, false>;
template class device_finder<bus::intellec4::device_univ_card_interface, true>;
namespace bus::intellec4 {
@ -267,6 +264,12 @@ void device_univ_card_interface::set_bus(univ_bus_device &bus)
#include "prommemory.h"
#include "tapereader.h"
// must come after including the headers that declare these extern
template class device_finder<bus::intellec4::device_univ_card_interface, false>;
template class device_finder<bus::intellec4::device_univ_card_interface, true>;
void intellec4_univ_cards(device_slot_interface &device)
{
device.option_add("imm4_22", INTELLEC4_INST_DATA_STORAGE);

View File

@ -94,9 +94,6 @@
DEFINE_DEVICE_TYPE(MAC_KEYBOARD_PORT, mac_keyboard_port_device, "mackbd_port", "Macintosh 128k/512k/Plus Keyboard Port")
template class device_finder<device_mac_keyboard_interface, false>;
template class device_finder<device_mac_keyboard_interface, true>;
//**************************************************************************
// HOST PORT
@ -163,6 +160,11 @@ void device_mac_keyboard_interface::interface_validity_check(validity_checker &v
#include "pluskbd.h"
// must come after including the headers that declare these extern
template class device_finder<device_mac_keyboard_interface, false>;
template class device_finder<device_mac_keyboard_interface, true>;
void mac_keyboard_devices(device_slot_interface &device)
{
device.option_add("us", MACKBD_M0110);

View File

@ -19,9 +19,6 @@
DEFINE_DEVICE_TYPE(TI8X_LINK_PORT, ti8x_link_port_device, "ti8x_link_port", "TI-8x Link Port")
template class device_finder<device_ti8x_link_port_interface, false>;
template class device_finder<device_ti8x_link_port_interface, true>;
ti8x_link_port_device::ti8x_link_port_device(
machine_config const &mconfig,
@ -616,6 +613,12 @@ void device_ti8x_link_port_byte_interface::bit_received(bool data)
#include "teeconn.h"
#include "tispeaker.h"
// must come after including the headers that declare these extern
template class device_finder<device_ti8x_link_port_interface, false>;
template class device_finder<device_ti8x_link_port_interface, true>;
void default_ti8x_link_devices(device_slot_interface &device)
{
device.option_add("bitsock", TI8X_BIT_SOCKET);