summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine
diff options
context:
space:
mode:
author Cowering <cowering@users.noreply.github.com>2015-07-23 10:48:28 -0500
committer Cowering <cowering@users.noreply.github.com>2015-07-23 10:48:28 -0500
commitdf2ebdea8d7c261d7e659593df32eaead1bd3fdd (patch)
tree926ff9a76669597e7c8b5d1107c738f3502ab6f0 /src/emu/machine
parent9d0e2427a48ac9806f0dd12646b2eaec5dab792a (diff)
please bear with me.. these are needed to compile in GCC 5.2 and I want mingw guys to see them. with luck they can be reverted in a couple of days (nw)
Diffstat (limited to 'src/emu/machine')
-rw-r--r--src/emu/machine/nvram.c11
-rw-r--r--src/emu/machine/pci.c11
-rw-r--r--src/emu/machine/pit8253.c10
3 files changed, 32 insertions, 0 deletions
diff --git a/src/emu/machine/nvram.c b/src/emu/machine/nvram.c
index 17a8fbcf60c..343d246176c 100644
--- a/src/emu/machine/nvram.c
+++ b/src/emu/machine/nvram.c
@@ -12,6 +12,12 @@
#include "machine/nvram.h"
+// for now, make buggy GCC/Mingw STFU about I64FMT
+#if (defined(__MINGW32__) && (__GNUC__ >= 5))
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat"
+#pragma GCC diagnostic ignored "-Wformat-extra-args"
+#endif
//**************************************************************************
// LIVE DEVICE
@@ -169,3 +175,8 @@ void nvram_device::determine_final_base()
if (m_region != NULL && m_region->bytes() != m_length)
throw emu_fatalerror("NVRAM device '%s' has a default region, but it should be 0x%" SIZETFMT "X bytes", tag(), m_length);
}
+
+#if (defined(__MINGW32__) && (__GNUC__ >= 5))
+#pragma GCC diagnostic pop
+#endif
+
diff --git a/src/emu/machine/pci.c b/src/emu/machine/pci.c
index 079444f379b..ef2e0f4ee0e 100644
--- a/src/emu/machine/pci.c
+++ b/src/emu/machine/pci.c
@@ -2,6 +2,13 @@
// copyright-holders:Olivier Galibert
#include "pci.h"
+// for now, make buggy GCC/Mingw STFU about I64FMT
+#if (defined(__MINGW32__) && (__GNUC__ >= 5))
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat"
+#pragma GCC diagnostic ignored "-Wformat-extra-args"
+#endif
+
const device_type PCI_ROOT = &device_creator<pci_root_device>;
const device_type PCI_BRIDGE = &device_creator<pci_bridge_device>;
@@ -895,3 +902,7 @@ void pci_root_device::device_start()
void pci_root_device::device_reset()
{
}
+
+#if (defined(__MINGW32__) && (__GNUC__ >= 5))
+#pragma GCC diagnostic pop
+#endif \ No newline at end of file
diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c
index ebd243899fc..006992f7073 100644
--- a/src/emu/machine/pit8253.c
+++ b/src/emu/machine/pit8253.c
@@ -23,6 +23,12 @@
#include "emu.h"
#include "machine/pit8253.h"
+// for now, make buggy GCC/Mingw STFU about I64FMT
+#if (defined(__MINGW32__) && (__GNUC__ >= 5))
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat"
+#pragma GCC diagnostic ignored "-Wformat-extra-args"
+#endif
/* device types */
enum
@@ -1129,3 +1135,7 @@ WRITE_LINE_MEMBER( pit8253_device::write_clk2 )
{
set_clock_signal(2, state);
}
+
+#if (defined(__MINGW32__) && (__GNUC__ >= 5))
+#pragma GCC diagnostic pop
+#endif