From: Kefu Chai Date: Tue, 12 Apr 2016 02:45:32 +0000 (+0800) Subject: os/FileStore::OpSequencer: operator<<: silence gcc warning X-Git-Tag: v11.0.0~865^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=323a3f8022009c668be23b0fc9476d9ebc9fd915;p=ceph.git os/FileStore::OpSequencer: operator<<: silence gcc warning it kills following warning: ``` /home/kefu/dev/ceph/src/os/filestore/FileStore.cc: In function ‘std::ostream& operator<<(std::ostream&, const FileStore::OpSequencer&)’: /home/kefu/dev/ceph/src/os/filestore/FileStore.cc:155:132: warning: the compiler can assume that the address of ‘out’ will always evaluate to ‘true’ [-Waddress] assert(&out); ``` Signed-off-by: Kefu Chai --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 95a4f5f7f0c2..95d7bc08739b 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -152,7 +152,6 @@ void FileStore::FSPerfTracker::update_from_perfcounters( ostream& operator<<(ostream& out, const FileStore::OpSequencer& s) { - assert(&out); return out << *s.parent; }