diff --git a/linux/ws_main.py b/linux/ws_main.py index fd86271920..bc6cfe664e 100755 --- a/linux/ws_main.py +++ b/linux/ws_main.py @@ -530,7 +530,6 @@ def configure_sanitized (conf): '-Wno-deprecated-declarations', '-Wno-dangling-pointer', # Disabled since unrecognized before gcc-12 '-Wno-error=maybe-uninitialized', # Additional warnings in gcc-11 - '-Wno-error=overloaded-virtual', # Additional warnings in gcc-13 '-Wno-error=uninitialized', '-std=c++0x', '-Wno-sign-compare', diff --git a/src/publisher/trex_publisher.h b/src/publisher/trex_publisher.h index 45c3255bce..84cde0ff61 100644 --- a/src/publisher/trex_publisher.h +++ b/src/publisher/trex_publisher.h @@ -137,7 +137,8 @@ class TrexPublisher { bool m_is_interactive; std::vector m_ctxs; - + +protected: static const int MSG_COMPRESS_THRESHOLD = 256; }; diff --git a/src/sim/trex_sim_stateless.cpp b/src/sim/trex_sim_stateless.cpp index f51f522b86..67da743b37 100644 --- a/src/sim/trex_sim_stateless.cpp +++ b/src/sim/trex_sim_stateless.cpp @@ -107,15 +107,14 @@ class SimPublisher : public TrexPublisher { public: /* override create */ - bool Create(uint16_t port, bool disable) { + bool Create(uint16_t port, bool disable) override { return true; } - void Delete() { - + void Delete(int timeout_sec = 0) override { } - void publish_json(const std::string &s) { + void publish_json(const std::string &s, uint32_t zip_threshold = TrexPublisher::MSG_COMPRESS_THRESHOLD) override { } virtual ~SimPublisher() {