1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-21 12:22:06 +03:00

Fix warnings when -Wextra-semi is enabled

Also, add argument -Wextra-semi if supported by the compiler.
This commit is contained in:
Daniele Sciascia
2022-09-20 11:47:43 +02:00
committed by Teemu Ollakka
parent 6caf006214
commit b5bddfe4db
5 changed files with 8 additions and 4 deletions

View File

@ -86,6 +86,10 @@ check_cxx_compiler_flag("-Wsuggest-override" HAVE_SUGGEST_OVERRIDE)
if (HAVE_SUGGEST_OVERRIDE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsuggest-override")
endif()
check_cxx_compiler_flag("-Wextra-semi" HAVE_EXTRA_SEMI)
if (HAVE_EXTRA_SEMI)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra-semi")
endif()
if (WSREP_LIB_STRICT_BUILD_FLAGS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weffc++")

View File

@ -77,6 +77,6 @@ namespace db
std::vector<std::shared_ptr<db::client>> clients_;
std::vector<boost::thread> client_threads_;
};
};
}
#endif // WSREP_DB_SERVER_HPP

View File

@ -57,6 +57,6 @@ namespace db
static void init(int mode);
static std::string stats();
};
};
}
#endif // WSREP_DB_TLS_HPP

View File

@ -52,4 +52,4 @@ namespace wsrep
}
std::ostream& operator<<(std::ostream&, const thread::id&);
};
}