fastmodel: Suppress a spurious warning on clang for amba_pv.h.
authorGabe Black <gabeblack@google.com>
Wed, 27 Nov 2019 12:09:04 +0000 (04:09 -0800)
committerGabe Black <gabeblack@google.com>
Tue, 3 Dec 2019 00:17:02 +0000 (00:17 +0000)
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>
src/arch/arm/fastmodel/GIC/gic.hh
src/arch/arm/fastmodel/amba_from_tlm_bridge.hh
src/arch/arm/fastmodel/amba_ports.hh
src/arch/arm/fastmodel/amba_to_tlm_bridge.hh
src/arch/arm/fastmodel/common/signal_receiver.hh

index f607d2b3c37a4acb9b4892711de7291a5c9d4ad4..15abba94c52a7125cc2a1bd0f3dbdfd3b8ed27ce 100644 (file)
 #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>
 
index a0d65e73ebc20e49d398737d4a6e4b7fc85af8ba..b57a4c63bb30d6bf109e60daced93c0195a38db6 100644 (file)
 #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"
 
index 43c15258c4ee6673083b0ee1408461bd4ec743ed..e895da1eebc9b51547c6d8562f176c5706d88a1b 100644 (file)
 #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"
 
index f3ccef5b0bc7ac84ce9071f944206fc20258ba77..e714e1e86597925e03c85c1a7f682082631dd858 100644 (file)
 #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"
 
index ac4aa98c6b0552331d926aa9dbcaac4550163c4e..2a922256ec209eb2dbd093b4ef4c1c58978c0bfb 100644 (file)
 #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>