]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FileStore::OpSequencer: operator<<: silence gcc warning
authorKefu Chai <kchai@redhat.com>
Tue, 12 Apr 2016 02:45:32 +0000 (10:45 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Apr 2016 13:33:55 +0000 (21:33 +0800)
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 <kchai@redhat.com>
src/os/filestore/FileStore.cc

index 95a4f5f7f0c2316845434c17d26583e251abb085..95d7bc08739b8ecfaefddc9b60345764a8399f1a 100644 (file)
@@ -152,7 +152,6 @@ void FileStore::FSPerfTracker::update_from_perfcounters(
 
 ostream& operator<<(ostream& out, const FileStore::OpSequencer& s)
 {
-  assert(&out);
   return out << *s.parent;
 }