cern-fts / davix

High-performance file management over WebDAV / HTTP
GNU Lesser General Public License v2.1
85 stars 36 forks source link

Fix initialization reorder warnings: #87

Closed ellert closed 2 years ago

ellert commented 2 years ago
.../src/params/davixrequestparams.cpp:194:19: warning: 'Davix::RequestParamsInternal::_s3_max_key_entries' will be initialized after [-Wreorder]
  194 |     unsigned long _s3_max_key_entries;
      |                   ^~~~~~~~~~~~~~~~~~~
.../src/params/davixrequestparams.cpp:191:40: warning:   'Davix::SwiftListingMode::SwiftListingMode Davix::RequestParamsInternal::_swift_listing_mode' [-Wreorder]
  191 |     SwiftListingMode::SwiftListingMode _swift_listing_mode;
      |                                        ^~~~~~~~~~~~~~~~~~~
.../src/params/davixrequestparams.cpp:88:5: warning:   when initialized here [-Wreorder]
   88 |     RequestParamsInternal() :
      |     ^~~~~~~~~~~~~~~~~~~~~

.../src/params/davixrequestparams.cpp:194:19: warning: 'Davix::RequestParamsInternal::_s3_max_key_entries' will be initialized after [-Wreorder]
  194 |     unsigned long _s3_max_key_entries;
      |                   ^~~~~~~~~~~~~~~~~~~
.../src/params/davixrequestparams.cpp:191:40: warning:   'Davix::SwiftListingMode::SwiftListingMode Davix::RequestParamsInternal::_swift_listing_mode' [-Wreorder]
  191 |     SwiftListingMode::SwiftListingMode _swift_listing_mode;
      |                                        ^~~~~~~~~~~~~~~~~~~
.../src/params/davixrequestparams.cpp:141:5: warning:   when initialized here [-Wreorder]
  141 |     RequestParamsInternal(const RequestParamsInternal & param_private):
      |     ^~~~~~~~~~~~~~~~~~~~~