Skip to content

fix some issues from cppchecker/clang++

Danny Al-Gaaf ceph-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyIn review
  2. v18 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8WorkQueue.h: fix castsrc/common/WorkQueue.h+2 -20 replies
2/8ceph_crypto.cc: remove unused shutdown() outside crypto ifdef'ssrc/common/ceph_crypto.cc+0 -10 replies
3/8obj_bencher.cc: use vector instead of VLA'ssrc/common/obj_bencher.cc+7 -60 replies
4/8include/buffer.h: fix operator=src/include/buffer.h+5 -30 replies
5/8include/types.h: change operator<< function parametersrc/include/types.h+1 -10 replies
6/8include/xlist.h: fix C-style pointer castingsrc/include/xlist.h+3 -30 replies
7/8messages/MOSDRepScrub.h: initialize member variable in constructorsrc/messages/MOSDRepScrub.h+4 -10 replies
8/8msg/Message.h: fix C-style pointer castingsrc/msg/Message.h+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] fix some issues from cppchecker/clang++

These patches fix some issues found by using cppchecker/clang++.

---
v2: - [4/8]: don't copy append_buffer and last_p
- [7/8]: use C++ initalize syntax for constructor

Danny Al-Gaaf (8):
WorkQueue.h: fix cast
ceph_crypto.cc: remove unused shutdown() outside crypto ifdef's obj_bencher.cc: use vector instead of VLA's include/buffer.h: fix operator=
include/types.h: change operator<< function parameter include/xlist.h: fix C-style pointer casting messages/MOSDRepScrub.h: initialize member variable in constructor msg/Message.h: fix C-style pointer casting

 src/common/WorkQueue.h      |  4 ++--
 src/common/ceph_crypto.cc   |  1 -
 src/common/obj_bencher.cc   | 13 +++++++------
 src/include/buffer.h        |  8 +++++---
 src/include/types.h         |  2 +-
 src/include/xlist.h         |  6 +++---
 src/messages/MOSDRepScrub.h |  5 ++++-
 src/msg/Message.h           |  4 ++--
 8 files changed, 24 insertions(+), 19 deletions(-)
Signature · 1 line
1.8.1.2