Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW] Fix RAFT warnings #56

Merged
merged 10 commits into from
Aug 24, 2020
Prev Previous commit
Next Next commit
reorder buffer_base initializer list to match the declration order
  • Loading branch information
seunghwak committed Aug 21, 2020
commit 26469f2afdbd6c5328f71461c95913555fbd173c
4 changes: 2 additions & 2 deletions cpp/include/raft/mr/buffer_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ class buffer_base {
*/
buffer_base(std::shared_ptr<AllocatorT> allocator, cudaStream_t stream,
size_type n = 0)
: size_(n),
: data_(nullptr),
size_(n),
capacity_(n),
data_(nullptr),
stream_(stream),
allocator_(std::move(allocator)) {
if (capacity_ > 0) {
Expand Down