Skip to content

Commit

Permalink
src: fix -Wreorder compiler warning
Browse files Browse the repository at this point in the history
../src/node_http_common-inl.h:126:7: warning: field 'token_'
will be initialized after field 'name_' [-Wreorder]
    : token_(other.token_),

PR-URL: nodejs#32126
Refs: nodejs#32069
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
cjihrig committed Mar 8, 2020
1 parent 3b8d70d commit 7bb4f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_http_common-inl.h
Expand Up @@ -123,9 +123,9 @@ NgHeader<T>::NgHeader(

template <typename T>
NgHeader<T>::NgHeader(NgHeader<T>&& other) noexcept
: token_(other.token_),
name_(std::move(other.name_)),
: name_(std::move(other.name_)),
value_(std::move(other.value_)),
token_(other.token_),
flags_(other.flags_) {
other.token_ = -1;
other.flags_ = 0;
Expand Down

0 comments on commit 7bb4f95

Please sign in to comment.