summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-11-27 04:09:04 -0800
committerGabe Black <gabeblack@google.com>2019-12-03 00:17:02 +0000
commitfd36873411ef212199dfdbf35be51e01f1da1b67 (patch)
treef16141e45dcc878cea593645002c48c91a76e13e /src/arch
parent258c04fc3fc7e69d9b6885776c0184515154675e (diff)
downloadgem5-fd36873411ef212199dfdbf35be51e01f1da1b67.tar.xz
fastmodel: Suppress a spurious warning on clang for amba_pv.h.
This header comes from the fast model distribution and so we can't (easily) disable the warning locally. Change-Id: I2c1eee48f8970bb17466f0759f0077a5d45e76af Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23123 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm/fastmodel/GIC/gic.hh3
-rw-r--r--src/arch/arm/fastmodel/amba_from_tlm_bridge.hh3
-rw-r--r--src/arch/arm/fastmodel/amba_ports.hh3
-rw-r--r--src/arch/arm/fastmodel/amba_to_tlm_bridge.hh3
-rw-r--r--src/arch/arm/fastmodel/common/signal_receiver.hh3
5 files changed, 15 insertions, 0 deletions
diff --git a/src/arch/arm/fastmodel/GIC/gic.hh b/src/arch/arm/fastmodel/GIC/gic.hh
index f607d2b3c..15abba94c 100644
--- a/src/arch/arm/fastmodel/GIC/gic.hh
+++ b/src/arch/arm/fastmodel/GIC/gic.hh
@@ -30,7 +30,10 @@
#ifndef __ARCH_ARM_FASTMODEL_GIC_GIC_HH__
#define __ARCH_ARM_FASTMODEL_GIC_GIC_HH__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Woverloaded-virtual"
#include <amba_pv.h>
+#pragma clang diagnostic pop
#include <memory>
diff --git a/src/arch/arm/fastmodel/amba_from_tlm_bridge.hh b/src/arch/arm/fastmodel/amba_from_tlm_bridge.hh
index a0d65e73e..b57a4c63b 100644
--- a/src/arch/arm/fastmodel/amba_from_tlm_bridge.hh
+++ b/src/arch/arm/fastmodel/amba_from_tlm_bridge.hh
@@ -30,7 +30,10 @@
#ifndef __ARCH_ARM_FASTMODEL_AMBA_FROM_TLM_BRIDGE_HH__
#define __ARCH_ARM_FASTMODEL_AMBA_FROM_TLM_BRIDGE_HH__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Woverloaded-virtual"
#include "amba_pv.h"
+#pragma clang diagnostic pop
#include "arch/arm/fastmodel/amba_ports.hh"
#include "systemc/tlm_port_wrapper.hh"
diff --git a/src/arch/arm/fastmodel/amba_ports.hh b/src/arch/arm/fastmodel/amba_ports.hh
index 43c15258c..e895da1ee 100644
--- a/src/arch/arm/fastmodel/amba_ports.hh
+++ b/src/arch/arm/fastmodel/amba_ports.hh
@@ -30,7 +30,10 @@
#ifndef __ARCH_ARM_FASTMODEL_AMBA_PORTS_HH__
#define __ARCH_ARM_FASTMODEL_AMBA_PORTS_HH__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Woverloaded-virtual"
#include <amba_pv.h>
+#pragma clang diagnostic pop
#include "systemc/tlm_port_wrapper.hh"
diff --git a/src/arch/arm/fastmodel/amba_to_tlm_bridge.hh b/src/arch/arm/fastmodel/amba_to_tlm_bridge.hh
index f3ccef5b0..e714e1e86 100644
--- a/src/arch/arm/fastmodel/amba_to_tlm_bridge.hh
+++ b/src/arch/arm/fastmodel/amba_to_tlm_bridge.hh
@@ -30,7 +30,10 @@
#ifndef __ARCH_ARM_FASTMODEL_AMBA_TO_TLM_BRIDGE_HH__
#define __ARCH_ARM_FASTMODEL_AMBA_TO_TLM_BRIDGE_HH__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Woverloaded-virtual"
#include "amba_pv.h"
+#pragma clang diagnostic pop
#include "arch/arm/fastmodel/amba_ports.hh"
#include "systemc/tlm_port_wrapper.hh"
diff --git a/src/arch/arm/fastmodel/common/signal_receiver.hh b/src/arch/arm/fastmodel/common/signal_receiver.hh
index ac4aa98c6..2a922256e 100644
--- a/src/arch/arm/fastmodel/common/signal_receiver.hh
+++ b/src/arch/arm/fastmodel/common/signal_receiver.hh
@@ -30,7 +30,10 @@
#ifndef __ARCH_ARM_FASTMODEL_COMMON_SIGNAL_RECEIVER_HH__
#define __ARCH_ARM_FASTMODEL_COMMON_SIGNAL_RECEIVER_HH__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Woverloaded-virtual"
#include <amba_pv.h>
+#pragma clang diagnostic pop
#include <functional>