Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build support for gcc-11, gcc-12 and gcc-13 #1087

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions linux/ws_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ def configure_sanitized (conf):
#'-DGLIBCXX_USE_CXX11_ABI=0',
'-g',
'-Wno-deprecated-declarations',
'-Wno-dangling-pointer', # Disabled since unrecognized before gcc-12
'-Wno-error=maybe-uninitialized', # Additional warnings in gcc-11
'-Wno-error=uninitialized',
'-std=c++0x',
'-Wno-sign-compare',
Expand Down
2 changes: 2 additions & 0 deletions linux_dpdk/ws_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@

gcc_flags = ['-Wall',
'-Werror',
'-Wno-error=maybe-uninitialized', # Additional warnings in gcc-11
'-Wno-dangling-pointer', # Disabled since unrecognized before gcc-12
'-Wno-literal-suffix',
'-Wno-sign-compare',
'-Wno-strict-aliasing',
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