]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Revert override keyword in Ftp::Server::callException
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 20 Aug 2015 09:55:56 +0000 (11:55 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 20 Aug 2015 09:55:56 +0000 (11:55 +0200)
If even one only method is marked override in a class, then clang
requires all overriding methods in the class to be marked as such.
This uncovers a problem where toCbdata is defined virtual in
AsyncJob (which Ftp::Server inherits from) and implemented nonvirtual
in the CBDATA_CLASS macro. Fixing this will be the result of a sepearate
effort, for now covering up by removing keyword and marking XXX.

src/servers/FtpServer.h

index 2ddaecbf49acf421f9d0edc380f77763712ff871..8aa40606ded6607b56f52654cb971779fd764e10 100644 (file)
@@ -53,12 +53,14 @@ public:
 class Server: public ConnStateData
 {
     CBDATA_CLASS(Server);
+    // XXX CBDATA_CLASS expands to nonvirtual toCbdata, AsyncJob::toCbdata
+    //     is pure virtual. breaks build on clang if override is used
 
 public:
     explicit Server(const MasterXaction::Pointer &xact);
     virtual ~Server();
     /* AsyncJob API */
-    virtual void callException(const std::exception &e) override;
+    virtual void callException(const std::exception &e);
 
     // This is a pointer in hope to minimize future changes when MasterState
     // becomes a part of MasterXaction. Guaranteed not to be nil.