Fix reorder warnings (dotnet/core-setup#5821)
authorOmair Majid <omajid@redhat.com>
Mon, 15 Apr 2019 19:26:05 +0000 (15:26 -0400)
committerVitek Karas <vitek.karas@microsoft.com>
Mon, 15 Apr 2019 19:26:05 +0000 (12:26 -0700)
commit42b3b8a6954465dcf519918acd1d4ab4a7848b83
tree99916b0ea5653a12e5e524120259376fcfc76e42
parentafb05510e0aca0d4a45926e67344ac3c2e2403be
Fix reorder warnings (dotnet/core-setup#5821)

Add compiler flags to fail any builds that produce that warning.

The member initialization list is always evaluated in the order the
members are delcared in the class, not the order in which they are
listed in the member initialization list. So modify the member
initialization lists to match the order in which they will be evaluated.

Commit migrated from https://github.com/dotnet/core-setup/commit/dcbb048073e3745df48e52d0619648f7aae8fa3d
src/installer/corehost/cli/apphost/bundle/bundle_runner.h
src/installer/corehost/cli/deps_format.h
src/installer/corehost/cli/fx_reference.h
src/installer/corehost/cli/fxr/corehost_init.cpp
src/installer/corehost/cli/hostpolicy/args.cpp
src/installer/corehost/cli/hostpolicy/args.h
src/installer/corehost/cli/hostpolicy/breadcrumbs.cpp
src/installer/corehost/cli/hostpolicy/deps_resolver.h
src/installer/corehost/cli/ijwhost/bootstrap_thunk_chunk.cpp
src/installer/settings.cmake