systemc: Disable 'overloaded-virtual' warn for clang (#1662)

We need to extend the warning disable even for clang compiler.

Fixes #1658
This commit is contained in:
Pranith
2024-10-18 05:40:10 -07:00
committed by GitHub
parent 946bf83b75
commit ae0cee66ed
4 changed files with 4 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ class sc_export : public sc_export_base
* code is correct).
* Please check section 9.3 of SystemC 2.3.1 release note for more details.
*/
#if defined(__GNUC__) && (__GNUC__ >= 13)
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 13))
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
#endif
void operator () (IF &i) { bind(i); }

View File

@@ -126,7 +126,7 @@ class sc_port_b : public sc_port_base
* code is correct).
* Please check section 9.3 of SystemC 2.3.1 release note for more details.
*/
#if defined(__GNUC__) && (__GNUC__ >= 13)
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 13))
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
#endif
void operator () (IF &i) { bind(i); }

View File

@@ -105,7 +105,7 @@ class tlm_base_initiator_socket :
* code is correct).
* Please check section 9.3 of SystemC 2.3.1 release note for more details.
*/
#if defined(__GNUC__) && (__GNUC__ >= 13)
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 13))
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
#endif
virtual void

View File

@@ -100,7 +100,7 @@ class tlm_base_target_socket :
* code is correct).
* Please check section 9.3 of SystemC 2.3.1 release note for more details.
*/
#if defined(__GNUC__) && (__GNUC__ >= 13)
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 13))
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
#endif
virtual void