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:
committed by
Teemu Ollakka
parent
6caf006214
commit
b5bddfe4db
@ -86,6 +86,10 @@ check_cxx_compiler_flag("-Wsuggest-override" HAVE_SUGGEST_OVERRIDE)
|
|||||||
if (HAVE_SUGGEST_OVERRIDE)
|
if (HAVE_SUGGEST_OVERRIDE)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsuggest-override")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsuggest-override")
|
||||||
endif()
|
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)
|
if (WSREP_LIB_STRICT_BUILD_FLAGS)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weffc++")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weffc++")
|
||||||
|
@ -77,6 +77,6 @@ namespace db
|
|||||||
std::vector<std::shared_ptr<db::client>> clients_;
|
std::vector<std::shared_ptr<db::client>> clients_;
|
||||||
std::vector<boost::thread> client_threads_;
|
std::vector<boost::thread> client_threads_;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif // WSREP_DB_SERVER_HPP
|
#endif // WSREP_DB_SERVER_HPP
|
||||||
|
@ -57,6 +57,6 @@ namespace db
|
|||||||
static void init(int mode);
|
static void init(int mode);
|
||||||
static std::string stats();
|
static std::string stats();
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif // WSREP_DB_TLS_HPP
|
#endif // WSREP_DB_TLS_HPP
|
||||||
|
@ -57,7 +57,7 @@ namespace wsrep
|
|||||||
class option_value
|
class option_value
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~option_value(){}
|
virtual ~option_value() {}
|
||||||
virtual const char* as_string() const = 0;
|
virtual const char* as_string() const = 0;
|
||||||
virtual const void* get_ptr() const = 0;
|
virtual const void* get_ptr() const = 0;
|
||||||
};
|
};
|
||||||
|
@ -52,4 +52,4 @@ namespace wsrep
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream&, const thread::id&);
|
std::ostream& operator<<(std::ostream&, const thread::id&);
|
||||||
};
|
}
|
||||||
|
Reference in New Issue
Block a user