]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: silence warning from -Wint-in-bool-context 16744/head
authorJos Collin <jcollin@redhat.com>
Wed, 2 Aug 2017 06:53:28 +0000 (12:23 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 2 Aug 2017 13:10:10 +0000 (18:40 +0530)
commit874b53e09703e9ca58df059f3705f999ee7ca3d4
treef1e3ace3d9e776b9560078f457f0866550c2caa3
parent31cd44fd8c176b92351613363201779515f1e19d
osd: silence warning from -Wint-in-bool-context

The following warning appears during build:
ceph/src/osd/PGLog.h: In member function ‘void PGLog::IndexedLog::index(pg_log_dup_t&)’:
ceph/src/osd/PGLog.h:29:43: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context]
 #define PGLOG_INDEXED_DUPS             (1 << 3)
                                        ~~~^~~~~
ceph/src/osd/PGLog.h:29:43: note: in definition of macro ‘PGLOG_INDEXED_DUPS’
 #define PGLOG_INDEXED_DUPS             (1 << 3)
                                           ^~
ceph/src/osd/PGLog.h: In member function ‘void PGLog::IndexedLog::unindex(const pg_log_dup_t&)’:
ceph/src/osd/PGLog.h:29:43: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context]
 #define PGLOG_INDEXED_DUPS             (1 << 3)
                                        ~~~^~~~~
ceph/src/osd/PGLog.h:29:43: note: in definition of macro ‘PGLOG_INDEXED_DUPS’
 #define PGLOG_INDEXED_DUPS             (1 << 3)
                                           ^~
Signed-off-by: Jos Collin <jcollin@redhat.com>
src/osd/PGLog.h