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

common: fix initialization order of FileHandler members #437

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

andrea-iob
Copy link
Member

@andrea-iob andrea-iob commented Dec 13, 2023

Fixes the following warning:

In file included from /opt/bitpit/src/common/bitpit_common.hpp:45,
                 from /opt/bitpit/src/common/fileHandler.cpp:30:
/opt/bitpit/src/common/fileHandler.hpp: In constructor 'bitpit::FileHandler::FileHandler()': /opt/bitpit/src/common/fileHandler.hpp:55:31: warning: 'bitpit::FileHandler::parallel' will be initialized after [-Wreorder]
   55 |         bool                  parallel ;       /**< is part of distributed data? */
      |                               ^~~~~~~~
/opt/bitpit/src/common/fileHandler.hpp:53:31: warning:   'int bitpit::FileHandler::counter' [-Wreorder]
   53 |         int                   counter ;        /**< counter for time series ; */

Fixes the following warning:

In file included from /opt/bitpit/src/common/bitpit_common.hpp:45,
                 from /opt/bitpit/src/common/fileHandler.cpp:30:
/opt/bitpit/src/common/fileHandler.hpp: In constructor 'bitpit::FileHandler::FileHandler()':
/opt/bitpit/src/common/fileHandler.hpp:55:31: warning: 'bitpit::FileHandler::parallel' will be initialized after [-Wreorder]
   55 |         bool                  parallel ;       /**< is part of distributed data? */
      |                               ^~~~~~~~
/opt/bitpit/src/common/fileHandler.hpp:53:31: warning:   'int bitpit::FileHandler::counter' [-Wreorder]
   53 |         int                   counter ;        /**< counter for time series ; */
@andrea-iob andrea-iob added this to the 1.9 milestone Dec 13, 2023
@andrea-iob andrea-iob self-assigned this Dec 13, 2023
@andrea-iob andrea-iob merged commit 2f9a035 into master Dec 15, 2023
6 checks passed
@andrea-iob andrea-iob deleted the common.fix.file.handler.warnings branch December 15, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants