Skip to content

Commit

Permalink
Fix overloaded-virtual warning in gcc-13
Browse files Browse the repository at this point in the history
Signed-off-by: Björn Svensson <[email protected]>
  • Loading branch information
bjosv committed Dec 19, 2023
1 parent 71d127a commit 3cc26aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion linux/ws_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion src/publisher/trex_publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ class TrexPublisher {
bool m_is_interactive;

std::vector<TrexPublisherCtx*> m_ctxs;


protected:
static const int MSG_COMPRESS_THRESHOLD = 256;
};

Expand Down
7 changes: 3 additions & 4 deletions src/sim/trex_sim_stateless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3cc26aa

Please sign in to comment.