diff options
Diffstat (limited to 'src/systemc/ext')
-rw-r--r-- | src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh b/src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh index 35c650bce..4f67b5923 100644 --- a/src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh +++ b/src/systemc/ext/tlm_core/2/sockets/initiator_socket.hh @@ -51,6 +51,10 @@ template <unsigned int BUSWIDTH, typename FW_IF, typename BW_IF, int N, sc_core::sc_port_policy POL> class tlm_base_target_socket; +// The overloaded virtual is intended in SystemC, so we'll disable the warning. +// Please check section 9.3 of SystemC 2.3.1 release note for more details. +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Woverloaded-virtual" template <unsigned int BUSWIDTH=32, typename FW_IF=tlm_fw_transport_if<>, typename BW_IF=tlm_bw_transport_if<>, int N=1, sc_core::sc_port_policy POL=sc_core::SC_ONE_OR_MORE_BOUND> @@ -120,8 +124,6 @@ class tlm_base_initiator_socket : (s.get_base_export())(get_base_export()); } - using port_type::bind; - void operator() (base_type &s) { bind(s); } // @@ -172,6 +174,7 @@ class tlm_base_initiator_socket : protected: export_type m_export; }; +#pragma GCC diagnostic pop // // Convenience socket classes |