Prepare for clang 11

This commit is contained in:
Alexey Milovidov 2020-09-04 03:39:56 +03:00
parent 796e3ae87d
commit 4b3220f79a
5 changed files with 7 additions and 6 deletions

View File

@ -74,10 +74,9 @@ target_link_libraries(capnpc PUBLIC capnp)
# The library has substandard code # The library has substandard code
if (COMPILER_GCC) if (COMPILER_GCC)
set (SUPPRESS_WARNINGS -Wno-non-virtual-dtor -Wno-sign-compare -Wno-strict-aliasing -Wno-maybe-uninitialized set (SUPPRESS_WARNINGS -w)
-Wno-deprecated-declarations -Wno-class-memaccess)
elseif (COMPILER_CLANG) elseif (COMPILER_CLANG)
set (SUPPRESS_WARNINGS -Wno-non-virtual-dtor -Wno-sign-compare -Wno-strict-aliasing -Wno-deprecated-declarations) set (SUPPRESS_WARNINGS -w)
set (CAPNP_PRIVATE_CXX_FLAGS -fno-char8_t) set (CAPNP_PRIVATE_CXX_FLAGS -fno-char8_t)
endif () endif ()

View File

@ -424,7 +424,7 @@ void ZooKeeperRequest::write(WriteBuffer & out) const
struct ZooKeeperResponse : virtual Response struct ZooKeeperResponse : virtual Response
{ {
virtual ~ZooKeeperResponse() = default; virtual ~ZooKeeperResponse() override = default;
virtual void readImpl(ReadBuffer &) = 0; virtual void readImpl(ReadBuffer &) = 0;
}; };

View File

@ -260,7 +260,7 @@ struct ZooKeeperRequest : virtual Request
ZooKeeperRequest() = default; ZooKeeperRequest() = default;
ZooKeeperRequest(const ZooKeeperRequest &) = default; ZooKeeperRequest(const ZooKeeperRequest &) = default;
virtual ~ZooKeeperRequest() = default; virtual ~ZooKeeperRequest() override = default;
virtual ZooKeeper::OpNum getOpNum() const = 0; virtual ZooKeeper::OpNum getOpNum() const = 0;

View File

@ -499,7 +499,7 @@ namespace MySQLReplication
virtual BinlogEventPtr readOneEvent() = 0; virtual BinlogEventPtr readOneEvent() = 0;
virtual void setReplicateDatabase(String db) = 0; virtual void setReplicateDatabase(String db) = 0;
virtual void setGTIDSets(GTIDSets sets) = 0; virtual void setGTIDSets(GTIDSets sets) = 0;
virtual ~IFlavor() = default; virtual ~IFlavor() override = default;
}; };
class MySQLFlavor : public IFlavor class MySQLFlavor : public IFlavor

View File

@ -128,6 +128,8 @@ struct NumericArraySource : public ArraySourceImpl<NumericArraySource<T>>
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override" #pragma GCC diagnostic ignored "-Wsuggest-override"
#elif __clang_major__ >= 11 #elif __clang_major__ >= 11
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#pragma GCC diagnostic ignored "-Wsuggest-destructor-override" #pragma GCC diagnostic ignored "-Wsuggest-destructor-override"
#endif #endif