Skip to content

Commit

Permalink
tracing: fix -Wreorder warning
Browse files Browse the repository at this point in the history
Initialize `InternalTraceBuffer::id_` the last.

PR-URL: #10416
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
santigimeno authored and italoacasas committed Mar 1, 2017
1 parent 9c75f4c commit 8a918bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tracing/node_trace_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ namespace tracing {

InternalTraceBuffer::InternalTraceBuffer(size_t max_chunks, uint32_t id,
NodeTraceWriter* trace_writer, NodeTraceBuffer* external_buffer)
: id_(id), flushing_(false), max_chunks_(max_chunks),
trace_writer_(trace_writer), external_buffer_(external_buffer) {
: flushing_(false), max_chunks_(max_chunks),
trace_writer_(trace_writer), external_buffer_(external_buffer),
id_(id) {
chunks_.resize(max_chunks);
}

Expand Down

0 comments on commit 8a918bf

Please sign in to comment.